Skip to content

Commit

Permalink
dont override set_layout for hxwidgets
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Jul 23, 2024
1 parent d96afd6 commit 3f0f1a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions haxe/ui/containers/Frame.hx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Frame extends Box {
@:clonable @:behaviour(CollapsedBehaviour) public var collapsed:Bool;
@:clonable @:value(text) public var value:Dynamic;

#if !haxeui_hxwidgets
public override function set_layout(value:haxe.ui.layouts.Layout):haxe.ui.layouts.Layout {
if ((value is Layout)) {
super.set_layout(value);
Expand All @@ -26,6 +27,7 @@ class Frame extends Box {
}
return value;
}
#end
}

//***********************************************************************************************************
Expand Down

0 comments on commit 3f0f1a1

Please sign in to comment.