From fa22f69534c5a957de627c56f55b8b2796ceee6c Mon Sep 17 00:00:00 2001 From: Ian Harrigan Date: Tue, 15 Oct 2024 13:05:42 +0200 Subject: [PATCH] different function signatures for different backends (TEMP) --- haxe/ui/containers/Panel.hx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/haxe/ui/containers/Panel.hx b/haxe/ui/containers/Panel.hx index 9a7017d82..92f43d738 100644 --- a/haxe/ui/containers/Panel.hx +++ b/haxe/ui/containers/Panel.hx @@ -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):Null { + contentContainer.percentHeight = 100; + return super.set_height(value); + } + + #end + public function showFooter() { findComponent(PanelFooter, true).show(); }