From 7103fa78ff732c2b8a23ec83937740119fc4044c Mon Sep 17 00:00:00 2001 From: bubnikv Date: Thu, 20 Jul 2017 13:09:02 +0200 Subject: [PATCH] Reverted back width of the tree control on the Tab panels. Fixes https://github.com/prusa3d/Slic3r/issues/428 --- lib/Slic3r/GUI/Tab.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/Slic3r/GUI/Tab.pm b/lib/Slic3r/GUI/Tab.pm index dbaacf6c8..b4ac5455a 100644 --- a/lib/Slic3r/GUI/Tab.pm +++ b/lib/Slic3r/GUI/Tab.pm @@ -36,8 +36,6 @@ sub new { $self->{sizer} = Wx::BoxSizer->new(wxVERTICAL); $self->{sizer}->SetSizeHints($self); $self->SetSizer($self->{sizer}); - - my $left_col_width = 150; # preset chooser { @@ -71,7 +69,7 @@ sub new { $self->{hsizer}->Add($left_sizer, 0, wxEXPAND | wxLEFT | wxTOP | wxBOTTOM, 3); # tree - $self->{treectrl} = Wx::TreeCtrl->new($self, -1, wxDefaultPosition, [$left_col_width, -1], wxTR_NO_BUTTONS | wxTR_HIDE_ROOT | wxTR_SINGLE | wxTR_NO_LINES | wxBORDER_SUNKEN | wxWANTS_CHARS); + $self->{treectrl} = Wx::TreeCtrl->new($self, -1, wxDefaultPosition, [185, -1], wxTR_NO_BUTTONS | wxTR_HIDE_ROOT | wxTR_SINGLE | wxTR_NO_LINES | wxBORDER_SUNKEN | wxWANTS_CHARS); $left_sizer->Add($self->{treectrl}, 1, wxEXPAND); $self->{icons} = Wx::ImageList->new(16, 16, 1); $self->{treectrl}->AssignImageList($self->{icons});