From 031149cc1d5a2277989ce1e60c071efdf609902e Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Sun, 3 Mar 2019 16:09:24 -0600 Subject: [PATCH] DolphinQt: Prevent contents of device and profile dropdowns from throwing off layout. --- Source/Core/DolphinQt/Config/Mapping/MappingWindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt/Config/Mapping/MappingWindow.cpp b/Source/Core/DolphinQt/Config/Mapping/MappingWindow.cpp index c1a5a034ee..67df39e4d1 100644 --- a/Source/Core/DolphinQt/Config/Mapping/MappingWindow.cpp +++ b/Source/Core/DolphinQt/Config/Mapping/MappingWindow.cpp @@ -67,7 +67,9 @@ void MappingWindow::CreateDevicesLayout() m_devices_combo = new QComboBox(); m_devices_refresh = new QPushButton(tr("Refresh")); + m_devices_combo->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed); m_devices_refresh->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); + m_devices_layout->addWidget(m_devices_combo); m_devices_layout->addWidget(m_devices_refresh); @@ -85,7 +87,7 @@ void MappingWindow::CreateProfilesLayout() auto* button_layout = new QHBoxLayout(); - m_profiles_box->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); + m_profiles_combo->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed); m_profiles_combo->setEditable(true); m_profiles_layout->addWidget(m_profiles_combo);