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 {