diff options
author | Vojtech Bubnik <bubnikv@gmail.com> | 2021-12-10 11:34:28 +0300 |
---|---|---|
committer | Vojtech Bubnik <bubnikv@gmail.com> | 2021-12-10 11:34:28 +0300 |
commit | 63a3971091edf8510840de36e7e41ea1026eebe1 (patch) | |
tree | c4284cbf30cb6e1fcc250a1f01c045958e51d35b | |
parent | 590f187370b2c8b90157ff6810c38a006c5fdc5e (diff) |
Windows specific: Fixes layout issues on plater, short BitmapComboBoxes
with some Windows scaling, see GH issue #7414.
The issue was most likely due to the initial main frame size
generated by Windows based on some unknown rule based on font scaling
and possibly display size and something else. If the initial window height
is short, then the last controls in a "rubbery" sizer are trimmed
and wxBitmapComboBoxes then remember the initial widget size indefinietly.
-rw-r--r-- | src/slic3r/GUI/Plater.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 0485b0075..fed9fa5bf 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -223,6 +223,9 @@ ObjectInfo::ObjectInfo(wxWindow *parent) : Add(sizer_manifold, 0, wxEXPAND | wxTOP, 4); sla_hidden_items = { label_volume, info_volume, /*label_materials, info_materials*/ }; + + // Fixes layout issues on plater, short BitmapComboBoxes with some Windows scaling, see GH issue #7414. + this->Show(false); } void ObjectInfo::show_sizer(bool show) |