diff options
author | Marvin W <git@larma.de> | 2025-02-22 11:25:53 +0100 |
---|---|---|
committer | Marvin W <git@larma.de> | 2025-02-22 11:27:48 +0100 |
commit | 834b1336dbe2901eec99b69c3c32805bec5eaed2 (patch) | |
tree | 2fd975786e4d4ef883f5137603aae7ebf3bc0ac5 /main/src/ui/util/size_request_box.vala | |
parent | efe39b8ea008cea3106fcc268d29d6f2bdf3c76e (diff) | |
download | dino-834b1336dbe2901eec99b69c3c32805bec5eaed2.tar.gz dino-834b1336dbe2901eec99b69c3c32805bec5eaed2.zip |
Fix various sizing issues
Diffstat (limited to 'main/src/ui/util/size_request_box.vala')
-rw-r--r-- | main/src/ui/util/size_request_box.vala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/main/src/ui/util/size_request_box.vala b/main/src/ui/util/size_request_box.vala index 7d7b6185..98f1a20a 100644 --- a/main/src/ui/util/size_request_box.vala +++ b/main/src/ui/util/size_request_box.vala @@ -16,6 +16,17 @@ public class SizeRequestBin : Widget { this.layout_manager = new BinLayout(); } + public override void compute_expand_internal(out bool hexpand, out bool vexpand) { + hexpand = false; + vexpand = false; + Widget child = get_first_child(); + while (child != null) { + hexpand = hexpand || child.compute_expand(Orientation.HORIZONTAL); + vexpand = vexpand || child.compute_expand(Orientation.VERTICAL); + child = child.get_next_sibling(); + } + } + public override Gtk.SizeRequestMode get_request_mode() { return size_request_mode; } |