summaryrefslogtreecommitdiffstats
path: root/perl-install/diskdrake/hd_gtk.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-08 16:18:52 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-08 16:18:52 +0000
commit07e9f6fb0532694c2a879d5861c445f1223bd273 (patch)
tree2ff82f56c636aa92d33f6b8d3cf391290a987095 /perl-install/diskdrake/hd_gtk.pm
parent09716088390276db3fc8d2d51ea035dadcf6fb62 (diff)
downloaddrakx-07e9f6fb0532694c2a879d5861c445f1223bd273.tar
drakx-07e9f6fb0532694c2a879d5861c445f1223bd273.tar.gz
drakx-07e9f6fb0532694c2a879d5861c445f1223bd273.tar.bz2
drakx-07e9f6fb0532694c2a879d5861c445f1223bd273.tar.xz
drakx-07e9f6fb0532694c2a879d5861c445f1223bd273.zip
(create_buttons4partitions) fix too large partition bar (#43073) by sizing the partitions bar on file system type bar's width
Diffstat (limited to 'perl-install/diskdrake/hd_gtk.pm')
-rw-r--r--perl-install/diskdrake/hd_gtk.pm2
1 files changed, 1 insertions, 1 deletions
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) {