From 63a3971091edf8510840de36e7e41ea1026eebe1 Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Fri, 10 Dec 2021 09:34:28 +0100 Subject: [PATCH] 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. --- src/slic3r/GUI/Plater.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 0485b00753..fed9fa5bf4 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)