Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVojtech Bubnik <bubnikv@gmail.com>2021-12-10 11:38:57 +0300
committerVojtech Bubnik <bubnikv@gmail.com>2021-12-10 11:38:57 +0300
commit26008adfa167561e77e3b5a9359cbee271d13d0b (patch)
treea436fb07c0ea4b7cd61d36c6e778438bde631d2c
parent63a3971091edf8510840de36e7e41ea1026eebe1 (diff)
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.
-rw-r--r--src/slic3r/GUI/Tab.cpp4
1 files changed, 3 insertions, 1 deletions
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);
}