Skip to content

Commit

Permalink
Qt/macOS: Fix mapping buttons not being round
Browse files Browse the repository at this point in the history
  • Loading branch information
spycrab committed May 30, 2018
1 parent bdfd331 commit 102d469
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Core/DolphinQt2/Config/Mapping/MappingButton.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 102d469

Please sign in to comment.