summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-02-07 22:45:40 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-02-07 22:45:40 +0000
commitaa110e6ba739904b50dc633b572766f6c69b4639 (patch)
treeb14407ecb0402b62559e34fec280dc27b3aba67b
parented1db3884ceffd84d82021c3f5c2c0c7be73a796 (diff)
downloaddrakx-aa110e6ba739904b50dc633b572766f6c69b4639.tar
drakx-aa110e6ba739904b50dc633b572766f6c69b4639.tar.gz
drakx-aa110e6ba739904b50dc633b572766f6c69b4639.tar.bz2
drakx-aa110e6ba739904b50dc633b572766f6c69b4639.tar.xz
drakx-aa110e6ba739904b50dc633b572766f6c69b4639.zip
fix error causing a bad window sizing when there is a horiz scroll
-rw-r--r--perl-install/interactive_gtk.pm5
1 files changed, 3 insertions, 2 deletions
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);
+ }
}
};