From 07e9f6fb0532694c2a879d5861c445f1223bd273 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 8 Sep 2008 16:18:52 +0000 Subject: (create_buttons4partitions) fix too large partition bar (#43073) by sizing the partitions bar on file system type bar's width --- perl-install/NEWS | 1 + perl-install/diskdrake/hd_gtk.pm | 2 +- perl-install/install/NEWS | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/NEWS b/perl-install/NEWS index 350c7d21a..3ed00f2ee 100644 --- a/perl-install/NEWS +++ b/perl-install/NEWS @@ -1,6 +1,7 @@ - diskdrake o fix file system type drop down list showing most types as "..." in expert mode due to ellipsizing (#43611) + o fix too large partition bar (#43073) o improved GUI Version 11.37 - 8 September 2008 diff --git a/perl-install/diskdrake/hd_gtk.pm b/perl-install/diskdrake/hd_gtk.pm index a68c3a2ba..2e79cc473 100644 --- a/perl-install/diskdrake/hd_gtk.pm +++ b/perl-install/diskdrake/hd_gtk.pm @@ -283,7 +283,7 @@ sub create_automatic_notebooks { sub create_buttons4partitions { my ($kind, $totalsectors, @parts) = @_; - $width = max($width, 0.7 * first($w->{window}->window->get_size)) if $w->{window}->window; + $width = first($w->{window}->window->get_size) - first(get_action_box_size()) - 25 if $w->{window}->window; my $ratio = $totalsectors ? ($width - @parts * $minwidth) / $totalsectors : 1; while (1) { diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index 02f2984d2..8e6be56ad 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -3,6 +3,7 @@ - partitionning step o fix file system type drop down list showing most types as "..." in expert mode due to ellipsizing (#43611) + o fix too large partition bar (#43073) o improved GUI Version 11.34 - 2 September 2008 -- cgit v1.2.1