FIX: layout in sidebar

Change-Id: I8f76d4f035c7458b98f285405e01404f2629df65
This commit is contained in:
chunmao.guo 2022-08-01 18:02:16 +08:00 committed by Lane.Wei
parent 179d2ec120
commit f56e9b4b21
7 changed files with 27 additions and 31 deletions

View file

@ -609,7 +609,7 @@ bool PresetComboBox::selection_is_changed_according_to_physical_printers()
// ---------------------------------
PlaterPresetComboBox::PlaterPresetComboBox(wxWindow *parent, Preset::Type preset_type) :
PresetComboBox(parent, preset_type, wxSize(15 * wxGetApp().em_unit(), 3 * wxGetApp().em_unit()))
PresetComboBox(parent, preset_type, wxSize(15 * wxGetApp().em_unit(), 24 * wxGetApp().em_unit() / 10))
{
GetDropDown().SetUseContentWidth(true);
@ -1092,7 +1092,7 @@ void PlaterPresetComboBox::update()
void PlaterPresetComboBox::msw_rescale()
{
PresetComboBox::msw_rescale();
SetMinSize({-1, 3 * m_em_unit});
SetMinSize({-1, 24 * m_em_unit / 10});
if (clr_picker)
clr_picker->SetSize(20 * m_em_unit / 10, 20 * m_em_unit / 10);
@ -1322,7 +1322,7 @@ void TabPresetComboBox::update()
void TabPresetComboBox::msw_rescale()
{
PresetComboBox::msw_rescale();
PresetComboBox::Rescale();
// BBS: new layout
wxSize sz = wxSize(20 * m_em_unit, GetSize().GetHeight());
SetMinSize(sz);