FIX: limit the max width of DropDown

jira: STUDIO-4503

limit the max width of DropDown for filament when user preset text is
too long.

Signed-off-by: wenjie.guo <wenjie.guo@bambulab.com>
Change-Id: I6778fce131fb3bee38acb116fea9cbbf9baeddb7
(cherry picked from commit d5da07988e28d6c506e315dbe1ab24954c2a8a55)
This commit is contained in:
wenjie.guo
2023-10-25 18:21:50 +08:00
committed by Lane.Wei
parent a61352e613
commit 87b8388f3b
3 changed files with 10 additions and 3 deletions

View File

@@ -632,7 +632,7 @@ bool PresetComboBox::selection_is_changed_according_to_physical_printers()
PlaterPresetComboBox::PlaterPresetComboBox(wxWindow *parent, Preset::Type preset_type) :
PresetComboBox(parent, preset_type, wxSize(25 * wxGetApp().em_unit(), 30 * wxGetApp().em_unit() / 10))
{
GetDropDown().SetUseContentWidth(true);
GetDropDown().SetUseContentWidth(true,true);
if (m_type == Preset::TYPE_FILAMENT)
{