mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-27 16:12:01 +08:00
This commit is contained in:
parent
7939672cf9
commit
a2b337ee45
@ -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…
x
Reference in New Issue
Block a user