From aa110e6ba739904b50dc633b572766f6c69b4639 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 7 Feb 2002 22:45:40 +0000 Subject: fix error causing a bad window sizing when there is a horiz scroll --- perl-install/interactive_gtk.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'perl-install/interactive_gtk.pm') diff --git a/perl-install/interactive_gtk.pm b/perl-install/interactive_gtk.pm index bd7ca88f8..9d3df0d79 100644 --- a/perl-install/interactive_gtk.pm +++ b/perl-install/interactive_gtk.pm @@ -504,8 +504,9 @@ sub ask_fromW { my $set_default_size = sub { if (!$::isEmbedded && !$::isWizard || $my_gtk::pop_it) { - $mainw->{rwindow}->set_default_size($totalwidth+6+$my_gtk::shape_width, $totalheight+6+3+$my_gtk::shape_width) if $has_scroll; - $mainw->{rwindow}->set_default_size($totalwidth+6+$my_gtk::shape_width, 0) if $has_horiz_scroll; + if ($has_scroll || $has_horiz_scroll) { + $mainw->{rwindow}->set_default_size($totalwidth+6+$my_gtk::shape_width, $has_scroll ? $totalheight+6+3+$my_gtk::shape_width : 0); + } } }; -- cgit v1.2.1