From 102d469f9ed9840a61ad9b7371557695dcd2a0a4 Mon Sep 17 00:00:00 2001 From: spycrab Date: Wed, 30 May 2018 16:39:07 +0200 Subject: [PATCH] Qt/macOS: Fix mapping buttons not being round --- Source/Core/DolphinQt2/Config/Mapping/MappingButton.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt2/Config/Mapping/MappingButton.cpp b/Source/Core/DolphinQt2/Config/Mapping/MappingButton.cpp index 1807c3ee0f..b1fd42a607 100644 --- a/Source/Core/DolphinQt2/Config/Mapping/MappingButton.cpp +++ b/Source/Core/DolphinQt2/Config/Mapping/MappingButton.cpp @@ -51,7 +51,9 @@ MappingButton::MappingButton(MappingWidget* widget, ControlReference* ref, bool int height = QFontMetrics(qApp->font()).height() + 2 * VERTICAL_PADDING; setMinimumHeight(height); - setMaximumHeight(height); + + // macOS needs some wiggle room to always get round buttons + setMaximumHeight(height + 8); // Make sure that long entries don't throw our layout out of whack setMaximumWidth(115);