diff options
| author | aldelaro5 <aldelaro5@gmail.com> | 2016-12-31 16:17:47 -0500 |
|---|---|---|
| committer | aldelaro5 <aldelaro5@gmail.com> | 2016-12-31 16:17:47 -0500 |
| commit | 42e4dde96046c5672dc8f4c835d6e75386677e40 (patch) | |
| tree | cf59b6d9bdf11d6a4a92348443234de100b33e13 /Source/Core | |
| parent | a2e191649dd8af8823f5c7b55b2484e7d00717b9 (diff) | |
Add an empty spacer in the Mic Input config dialog
This is done to not have the device combo box be too small in width when making the main sizer fit into the window. Not fitting the sizer would alternatively break Hidpi so it was best to just add an empty sizer to workaround this problem.
Diffstat (limited to 'Source/Core')
| -rwxr-xr-x[-rw-r--r--] | Source/Core/DolphinWX/Input/MicButtonConfigDiag.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Core/DolphinWX/Input/MicButtonConfigDiag.cpp b/Source/Core/DolphinWX/Input/MicButtonConfigDiag.cpp index f42571bfe5..1124a07663 100644..100755 --- a/Source/Core/DolphinWX/Input/MicButtonConfigDiag.cpp +++ b/Source/Core/DolphinWX/Input/MicButtonConfigDiag.cpp @@ -12,6 +12,7 @@ MicButtonConfigDialog::MicButtonConfigDialog(wxWindow* const parent, InputConfig : InputConfigDialog(parent, config, name, port_num) { const int space5 = FromDIP(5); + const int space150 = FromDIP(150); auto* const device_chooser = CreateDeviceChooserGroupBox(); @@ -20,6 +21,8 @@ MicButtonConfigDialog::MicButtonConfigDialog(wxWindow* const parent, InputConfig auto* const controls_sizer = new wxBoxSizer(wxHORIZONTAL); controls_sizer->Add(group_box_button, 0, wxEXPAND); + // Avoid having the device combo box to be too small. + controls_sizer->AddSpacer(space150); auto* const szr_main = new wxBoxSizer(wxVERTICAL); szr_main->AddSpacer(space5); @@ -30,7 +33,7 @@ MicButtonConfigDialog::MicButtonConfigDialog(wxWindow* const parent, InputConfig szr_main->Add(CreateButtonSizer(wxCLOSE | wxNO_DEFAULT), 0, wxEXPAND | wxLEFT | wxRIGHT, space5); szr_main->AddSpacer(space5); - SetSizer(szr_main); + SetSizerAndFit(szr_main); Center(); UpdateGUI(); } |
