Skip to content

Commit

Permalink
DiskBar: use constraint from constant instead of relative
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed Sep 25, 2024
1 parent b02afc5 commit f59dcfa
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/Widgets/DiskBar.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
);
Expand Down

0 comments on commit f59dcfa

Please sign in to comment.