Fix of "cut off text for filament type" (Related to #5444)

This commit is contained in:
YuSanka 2020-12-17 16:51:25 +01:00
parent aa69730bc2
commit b22a38d1d1

View File

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