Skip to content

Commit

Permalink
different function signatures for different backends (TEMP)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Oct 15, 2024
1 parent 8ce3f2c commit fa22f69
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions haxe/ui/containers/Panel.hx
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,22 @@ class Panel extends VBox {
return super.set_percentHeight(value);
}

#if ((haxeui_openfl || haxeui_nme) && !haxeui_flixel)

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

#else

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

#end

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

0 comments on commit fa22f69

Please sign in to comment.