From dbc1bc0a0e1f63f47ee5624d0405caf41b94bcf2 Mon Sep 17 00:00:00 2001 From: Shallowmallow Date: Mon, 4 Nov 2024 11:35:09 +0100 Subject: [PATCH] Override also percentWidth --- haxe/ui/containers/Panel.hx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/haxe/ui/containers/Panel.hx b/haxe/ui/containers/Panel.hx index 130f06c51..38c5ebc52 100644 --- a/haxe/ui/containers/Panel.hx +++ b/haxe/ui/containers/Panel.hx @@ -49,6 +49,11 @@ class Panel extends VBox { return super.set_percentHeight(value); } + public override function set_percentWidth(value:Null):Null { + contentContainer.percentWidth = 100; + return super.set_percentWidth(value); + } + #if (haxeui_openfl || haxeui_nme || haxeui_flixel) public override function set_width(value:Float):Float {