From c25e45a20b2e16cc86b1f4d99de55947f050e530 Mon Sep 17 00:00:00 2001 From: Ian Harrigan Date: Tue, 15 Oct 2024 08:53:36 +0200 Subject: [PATCH] better panel autosizing --- haxe/ui/containers/Panel.hx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/haxe/ui/containers/Panel.hx b/haxe/ui/containers/Panel.hx index ec2a8908f..fab88ea6d 100644 --- a/haxe/ui/containers/Panel.hx +++ b/haxe/ui/containers/Panel.hx @@ -11,7 +11,7 @@ import haxe.ui.util.Variant; @:xml(' ') @@ -43,6 +43,11 @@ class Panel extends VBox { return super.set_percentHeight(value); } + public override function set_height(value:Null):Null { + contentContainer.percentHeight = 100; + return super.set_height(value); + } + public function showFooter() { findComponent(PanelFooter, true).show(); }