diff options
author | enricoturri1966 <enricoturri@seznam.cz> | 2021-09-13 14:34:49 +0300 |
---|---|---|
committer | enricoturri1966 <enricoturri@seznam.cz> | 2021-09-13 14:34:49 +0300 |
commit | 60b5e0d0d5ead48d86bbdc78d48ede156d50a5e4 (patch) | |
tree | 937667655e6f1498df99d4a96a86428b932d2e8e /src/slic3r | |
parent | f9a5ee725d71898179b2ec9e22844b977b4f98b6 (diff) |
Fixed wrong layout of preview's combos popup windows the first time they are open
Diffstat (limited to 'src/slic3r')
-rw-r--r-- | src/slic3r/GUI/GUI.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/slic3r/GUI/GUI.cpp b/src/slic3r/GUI/GUI.cpp index 59ccd9d66..00490d03d 100644 --- a/src/slic3r/GUI/GUI.cpp +++ b/src/slic3r/GUI/GUI.cpp @@ -383,6 +383,7 @@ void create_combochecklist(wxComboCtrl* comboCtrl, const std::string& text, cons // the following line messes up the popup size the first time it is shown on wxWidgets 3.1.3 // comboCtrl->EnablePopupAnimation(false); + popup->SetFont(comboCtrl->GetFont()); comboCtrl->SetPopupControl(popup); wxString title = from_u8(text); max_width = std::max(max_width, 60 + comboCtrl->GetTextExtent(title).x); |