We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34fe148 commit 6131312Copy full SHA for 6131312
haxe/ui/backend/ScreenImpl.hx
@@ -275,12 +275,17 @@ class ScreenImpl extends ScreenBase {
275
276
private override function handleSetComponentIndex(child:Component, index:Int) {
277
var offset = 0;
278
+ StateHelper.currentState.forEach((item) -> {
279
+ offset++;
280
+ });
281
+ /* see: https://github.com/haxeui/haxeui-flixel/issues/61
282
for (i in 0...StateHelper.currentState.length) {
283
if ((StateHelper.currentState.members[i] is Component)) {
284
offset = i;
285
break;
286
}
287
288
+ */
289
290
StateHelper.currentState.remove(child, true);
291
StateHelper.currentState.insert(index + offset, child);
0 commit comments