Skip to content

Commit

Permalink
Merge pull request #567 from hoseyjoe/master
Browse files Browse the repository at this point in the history
Frame as child of frame fix
  • Loading branch information
ianharrigan authored Jan 20, 2024
2 parents d2f9ef1 + db8aa93 commit c089834
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion haxe/ui/containers/Frame.hx
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,11 @@ private class Builder extends CompositeBuilder {

public function addCollapsibleHeader() {
_component.addClass("collapsible-frame");
var header = _component.findComponent("frame-header", Header);
var header = _component.findComponent("frame-header", Header, false);
if (header == null) {
header = new Header();
header.id = "frame-header";
header.addClass("frame-header");
header.includeInLayout = false;
_component.addComponent(header);
}
Expand Down

0 comments on commit c089834

Please sign in to comment.