From 2d17a94a3842ce7ae3e8a7e31b5a9a8aee028a98 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Wed, 18 Jul 2012 12:00:19 +0200 Subject: [PATCH] Prevent the left treectrl to grow if preset names are too long --- lib/Slic3r/GUI/Tab.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/GUI/Tab.pm b/lib/Slic3r/GUI/Tab.pm index 62df01a4f..66859b0fb 100644 --- a/lib/Slic3r/GUI/Tab.pm +++ b/lib/Slic3r/GUI/Tab.pm @@ -31,13 +31,13 @@ sub new { my $left_sizer = Wx::BoxSizer->new(wxVERTICAL); $self->{sizer}->Add($left_sizer, 0, wxEXPAND | wxLEFT | wxTOP | wxBOTTOM, 3); - my $left_col_width = 210; + my $left_col_width = 150; # preset chooser { # 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); # buttons