From 00dcaba37d66e0cd80442b9e4956e7d986f34a9b Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 21 Nov 2014 23:10:13 -0500 Subject: [PATCH] WiimoteConfigDiag: Size the config buttons correctly --- Source/Core/DolphinWX/WiimoteConfigDiag.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinWX/WiimoteConfigDiag.cpp b/Source/Core/DolphinWX/WiimoteConfigDiag.cpp index 7d4b6f2ee4..96e1e98017 100644 --- a/Source/Core/DolphinWX/WiimoteConfigDiag.cpp +++ b/Source/Core/DolphinWX/WiimoteConfigDiag.cpp @@ -72,7 +72,7 @@ wxStaticBoxSizer* WiimoteConfigDiag::CreateGamecubeSizer() for (int i = 0; i < 4; i++) { - config_buttons[i] = new wxButton(this, wxID_ANY, _("Configure")); + config_buttons[i] = new wxButton(this, wxID_ANY, _("Configure"), wxDefaultPosition, wxSize(100, 25)); pad_labels[i] = new wxStaticText(this, wxID_ANY, wxString::Format(_("Port %i"), i + 1)); // Only add AM-Baseboard to the first pad. @@ -83,7 +83,7 @@ wxStaticBoxSizer* WiimoteConfigDiag::CreateGamecubeSizer() gamecube_flex_sizer->Add(pad_labels[i], 0, wxALIGN_CENTER_VERTICAL); gamecube_flex_sizer->Add(pad_type_choices[i], 0, wxALIGN_CENTER_VERTICAL); - gamecube_flex_sizer->Add(config_buttons[i], 0, wxALIGN_CENTER_VERTICAL); + gamecube_flex_sizer->Add(config_buttons[i], 1, wxEXPAND); } gamecube_static_sizer->Add(gamecube_flex_sizer, 1, wxEXPAND, 5);