Skip to content

Commit

Permalink
Merge pull request #652 from Shallowmallow/PanelFix
Browse files Browse the repository at this point in the history
Override also percentWidth
  • Loading branch information
ianharrigan authored Nov 4, 2024
2 parents 3ab5f92 + dbc1bc0 commit 2bad9ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions haxe/ui/containers/Panel.hx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ class Panel extends VBox {
return super.set_percentHeight(value);
}

public override function set_percentWidth(value:Null<Float>):Null<Float> {
contentContainer.percentWidth = 100;
return super.set_percentWidth(value);
}

#if (haxeui_openfl || haxeui_nme || haxeui_flixel)

public override function set_width(value:Float):Float {
Expand Down

0 comments on commit 2bad9ae

Please sign in to comment.