Add work-around for "Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 17". #558

This commit is contained in:
Henrik Brix Andersen 2012-08-02 23:07:42 +02:00
parent 794a090892
commit ed89038f0b

View file

@ -181,7 +181,7 @@ sub new {
# contents
$self->{width} = 400;
$self->{vsizer} = Wx::BoxSizer->new(wxVERTICAL);
$sizer->Add($self->{vsizer}, 1, wxEXPAND, 0);
$sizer->Add($self->{vsizer}, 1);
return $self;
}