Skip to content

Commit

Permalink
Fix compiling errors with haxeui-flixel
Browse files Browse the repository at this point in the history
A recent commit was made that makes set_height in Panel use Null<Float>, however this causes a compiler error when using the Flixel backend of HaxeUI, since FlxObjects do not take in a Null<Float> for their height
  • Loading branch information
swordcube authored Oct 21, 2024
1 parent 35c0a1a commit 4675b6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haxe/ui/containers/Panel.hx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Panel extends VBox {
return super.set_percentHeight(value);
}

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

public override function set_height(value:Float):Float {
contentContainer.percentHeight = 100;
Expand Down

0 comments on commit 4675b6e

Please sign in to comment.