diff --git a/src/Widgets/DiskBar.vala b/src/Widgets/DiskBar.vala index 807bb905d..621049fa4 100644 --- a/src/Widgets/DiskBar.vala +++ b/src/Widgets/DiskBar.vala @@ -188,14 +188,11 @@ public class Installer.DiskBar: Gtk.Box { // Fill width based on partition size layout_manager.add_constraint ( - new Gtk.Constraint ( + new Gtk.Constraint.const ( widget, WIDTH, - EQ, - this, - WIDTH, - percentage, - 0, + LE, + percentage * get_width (), Gtk.ConstraintStrength.STRONG ) );