Skip to content

Commit eafb86a

Browse files
authored
Merge pull request #29 from AdrianV/haxe4-compat
haxe 4 is a little picky here
2 parents 600db38 + 5dc187c commit eafb86a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

haxe/ui/backend/html5/native/layouts/ButtonLayout.hx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class ButtonLayout extends DefaultLayout {
5757
if (Std.is(last, ImageElement) == false) {
5858
HtmlUtils.swapElements(first, last);
5959
}
60+
default :
6061
}
6162

6263
var img:ImageElement = getIcon();
@@ -82,6 +83,7 @@ class ButtonLayout extends DefaultLayout {
8283
text.style.display = "inline-block";
8384
case "top" | "bottom":
8485
text.style.display = "block";
86+
default :
8587
}
8688
}
8789
}

0 commit comments

Comments
 (0)