From 26008adfa167561e77e3b5a9359cbee271d13d0b Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Fri, 10 Dec 2021 09:38:57 +0100 Subject: [PATCH] Trying to fix #7176: Incorrect vertical size of a wxBitmapComboBox selecting presets at the Persets page due to likely incorrect setting of a "rubbery" scale factor of one of the box sizers. --- src/slic3r/GUI/Tab.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index 335dd6619..5d76054e5 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -289,7 +289,9 @@ void Tab::create_preset_tab() // There is used just additional sizer for m_mode_sizer with right alignment if (m_mode_sizer) { auto mode_sizer = new wxBoxSizer(wxVERTICAL); - mode_sizer->Add(m_mode_sizer, 1, wxALIGN_RIGHT); + // Don't set the 2nd parameter to 1, making the sizer rubbery scalable in Y axis may lead + // to wrong vertical size assigned to wxBitmapComboBoxes, see GH issue #7176. + mode_sizer->Add(m_mode_sizer, 0, wxALIGN_RIGHT); m_hsizer->Add(mode_sizer, 1, wxALIGN_CENTER_VERTICAL | wxRIGHT, wxOSX ? 15 : 10); }