From b22a38d1d1417f8f7b6b1b773a76224be0ee4e1b Mon Sep 17 00:00:00 2001 From: YuSanka Date: Thu, 17 Dec 2020 16:51:25 +0100 Subject: [PATCH] Fix of "cut off text for filament type" (Related to #5444) --- src/slic3r/GUI/Field.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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);