Prevent the left treectrl to grow if preset names are too long
This commit is contained in:
parent
42034ecb40
commit
2d17a94a38
@ -31,13 +31,13 @@ sub new {
|
|||||||
my $left_sizer = Wx::BoxSizer->new(wxVERTICAL);
|
my $left_sizer = Wx::BoxSizer->new(wxVERTICAL);
|
||||||
$self->{sizer}->Add($left_sizer, 0, wxEXPAND | wxLEFT | wxTOP | wxBOTTOM, 3);
|
$self->{sizer}->Add($left_sizer, 0, wxEXPAND | wxLEFT | wxTOP | wxBOTTOM, 3);
|
||||||
|
|
||||||
my $left_col_width = 210;
|
my $left_col_width = 150;
|
||||||
|
|
||||||
# preset chooser
|
# preset chooser
|
||||||
{
|
{
|
||||||
|
|
||||||
# choice menu
|
# choice menu
|
||||||
$self->{presets_choice} = Wx::Choice->new($self, -1, wxDefaultPosition, wxDefaultSize, []);
|
$self->{presets_choice} = Wx::Choice->new($self, -1, wxDefaultPosition, [$left_col_width, -1], []);
|
||||||
$self->{presets_choice}->SetFont($Slic3r::GUI::small_font);
|
$self->{presets_choice}->SetFont($Slic3r::GUI::small_font);
|
||||||
|
|
||||||
# buttons
|
# buttons
|
||||||
|
Loading…
Reference in New Issue
Block a user