diff options
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; } |