Skip to content

iOS: Broken nested NavigationWindow's windows opening. #14100

@yuranevmer

Description

@yuranevmer

I have searched and made sure there are no existing issues for the issue I am filing

  • I have searched the existing issues

Description

navigationWindow.openWindow(window) - doesn't show new window if navigationWindow was opened in another NavigationWindow's.

Expected Behavior

Window opened in nested navigation stack was opened (displayed on the screen).

Actual behavior

Window opened in nested navigation stack was not displayed on the screen.

Reproducible sample

const nestedNavWin = Ti.UI.createNavigationWindow({
    window: Ti.UI.createWindow({ backgroundColor: "yellow" })
});

const mainNavWin = Ti.UI.createNavigationWindow({
	window: Ti.UI.createWindow()
	// but if pass `nestedNavWin` as window in creation time it works
	// window: nestedNavWin
});

mainNavWin.open();

// open nested navigation
_.delay(() => {
	mainNavWin.openWindow(nestedNavWin);
}, 1000);

// window opened by nested navigation doesn't show
_.delay(() => {
	console.log("Must open red window");
	nestedNavWin.openWindow(Ti.UI.createWindow({ backgroundColor: "red" }));
}, 3000);

Steps to reproduce

One NavigationWindow opens another NavigationWindow (using openWindow() method).
Nested NavigationWindow tries to open one more window in stack.

Platform

iOS

SDK version you are using

12

Alloy version you are using

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugiosneeds triageThis issue hasn't been reviewed by maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions