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.
This commit is contained in:
Vojtech Bubnik 2021-12-10 09:34:28 +01:00
parent 590f187370
commit 63a3971091

View file

@ -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)