mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-20 01:12:09 +00:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user