From 2e597353e8afa405ac96dfd83345853af18ed2f4 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 30 Aug 2001 16:38:20 +0000 Subject: fix&cleanup window size --- perl-install/interactive_gtk.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'perl-install') diff --git a/perl-install/interactive_gtk.pm b/perl-install/interactive_gtk.pm index 12fd43c4b..cc0eb6c99 100644 --- a/perl-install/interactive_gtk.pm +++ b/perl-install/interactive_gtk.pm @@ -14,6 +14,7 @@ my $forgetTime = 1000; #- in milli-seconds sub new { ($::windowheight, $::windowwidth) = my_gtk::gtkroot()->get_size if !$::isInstall; + ($::wantedheight, $::wantedwidth) = ($::windowheight * 0.8, $::windowwidth * 0.8); goto &interactive::new; } sub enter_console { my ($o) = @_; $o->{suspended} = common::setVirtual(1) } @@ -494,10 +495,10 @@ sub ask_fromW { my $w = create_packtable({}, map { [($_->{icon_w}, $_->{e}{label}, $_->{real_w})]} @_); my $width = max(250, $max_width * 5); - $mainw->{box_width} = min($::windowheight * 0.7, $width); + $mainw->{box_width} = min($::wantedwidth, $width); my $height = max(200, my_gtk::n_line_size($always_total_size, 'various', $mainw->{rwindow})); - $mainw->{box_height} = min($::windowheight * 0.7, $height); + $mainw->{box_height} = min($::wantedheight, $height); my $has = $width > $mainw->{box_width} || $height > $mainw->{box_height}; $has_scroll ||= $has; -- cgit v1.2.1