diff --git a/haxe/ui/containers/Panel.hx b/haxe/ui/containers/Panel.hx
index ec2a8908..fab88ea6 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();
}