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

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2020-12-17 18:51:25 +0300
committerYuSanka <yusanka@gmail.com>2020-12-17 18:51:51 +0300
commitb22a38d1d1417f8f7b6b1b773a76224be0ee4e1b (patch)
tree5f0c034c395caa0e5c30bca1ed49ccd1f7bbaeb3
parentaa69730bc2884f331e738ccbcdd3fddf85e96467 (diff)
Fix of "cut off text for filament type" (Related to #5444)
-rw-r--r--src/slic3r/GUI/Field.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/slic3r/GUI/Field.cpp b/src/slic3r/GUI/Field.cpp
index 4eae3e36e..88c833187 100644
--- a/src/slic3r/GUI/Field.cpp
+++ b/src/slic3r/GUI/Field.cpp
@@ -917,6 +917,12 @@ void Choice::BUILD() {
#endif //__WXOSX__
}
+#ifdef __WXGTK3__
+ wxSize best_sz = temp->GetBestSize();
+ if (best_sz.x > size.x)
+ temp->SetSize(best_sz);
+#endif //__WXGTK3__
+
temp->SetFont(Slic3r::GUI::wxGetApp().normal_font());
if (!wxOSX) temp->SetBackgroundStyle(wxBG_STYLE_PAINT);