This commit is contained in:
parent
fcabe8a0f4
commit
0369caa9e1
@ -887,9 +887,13 @@ void PlaterPresetComboBox::update()
|
|||||||
if (!tooltip.IsEmpty())
|
if (!tooltip.IsEmpty())
|
||||||
SetToolTip(tooltip);
|
SetToolTip(tooltip);
|
||||||
|
|
||||||
|
#ifdef __WXMSW__
|
||||||
|
// Use this part of code just on Windows to avoid of some layout issues on Linux
|
||||||
|
// see https://github.com/prusa3d/PrusaSlicer/issues/5163 and https://github.com/prusa3d/PrusaSlicer/issues/5505
|
||||||
// Update control min size after rescale (changed Display DPI under MSW)
|
// Update control min size after rescale (changed Display DPI under MSW)
|
||||||
if (GetMinWidth() != 20 * m_em_unit)
|
if (GetMinWidth() != 20 * m_em_unit)
|
||||||
SetMinSize(wxSize(20 * m_em_unit, GetSize().GetHeight()));
|
SetMinSize(wxSize(20 * m_em_unit, GetSize().GetHeight()));
|
||||||
|
#endif //__WXMSW__
|
||||||
}
|
}
|
||||||
|
|
||||||
void PlaterPresetComboBox::msw_rescale()
|
void PlaterPresetComboBox::msw_rescale()
|
||||||
|
Loading…
Reference in New Issue
Block a user