Skip to content

Commit

Permalink
better panel autosizing
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Oct 15, 2024
1 parent d73381f commit c25e45a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion haxe/ui/containers/Panel.hx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import haxe.ui.util.Variant;
@:xml('
<vbox>
<box id="headerContainer" width="100%" hidden="true" />
<box id="contentContainer" styleName="panel-content" width="100%" />
<box id="contentContainer" styleName="panel-content" />
<box id="footerContainer" width="100%" hidden="true" />
</vbox>
')
Expand Down Expand Up @@ -43,6 +43,11 @@ class Panel extends VBox {
return super.set_percentHeight(value);
}

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

public function showFooter() {
findComponent(PanelFooter, true).show();
}
Expand Down

0 comments on commit c25e45a

Please sign in to comment.