Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15767] iOS: Navigation root window does not display in full screen the second it is opening

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2017-06-19T20:17:34.000+0000
Affected Version/sRelease 3.1.3
Fix Version/sn/a
ComponentsiOS
LabelsSupportTeam
ReporterDavid He
AssigneeEric Merriman
Created2013-11-11T00:11:43.000+0000
Updated2017-06-19T20:17:34.000+0000

Description

Problem Description

Navigation root window does not display in full screen the second it is opening. It only happens with the second window (win2). \

Steps to reproduce

1. Create a new mobile project 2. Paste the code to app.js:
var Main = Ti.UI.createWindow({
	backgroundColor : "yellow",
	title : "Root Window",
	fullscreen : false
});

var mButton = Ti.UI.createButton({
	title : "start"
});

mButton.addEventListener("click", function(e) {
	Root.open();
});

Main.add(mButton);
Main.open();

var win2 = Titanium.UI.createWindow({
	backgroundColor : 'red',
	title : 'Red Window'
});

var Root = Titanium.UI.iOS.createNavigationWindow({
	window : win2,
	backgroundColor : "yellow"
});

var win3 = Titanium.UI.createWindow({
	backgroundColor : 'blue',
	title : 'Blue Window'
});

var button = Titanium.UI.createButton({
	title : 'Open Blue Window'
});
button.addEventListener('click', function() {
	Root.openWindow(win3, {
		animated : true
	});
});

win2.add(button);

var button3 = Titanium.UI.createButton({
	title : 'Open Green Window'
});
var button4 = Ti.UI.createButton({
	title : "Exit"
});

var win4 = Ti.UI.createWindow({
	backgroundColor : 'green',
	title : 'Green Window'
});


button4.addEventListener('click', function() {
	Root.close();
});

win4.add(button4);



button3.addEventListener("click", function() {
	Root.openWindow(win4, {
		animated : true
	});
});

win3.add(button3);
3. Click start. You will see the red window with some of yellow. this is the bug. 4. Click next. You will see that the new window totally covers the screen (as expected with the win2/ red window).

Attachments

FileDateSize
Screen Shot 2013-11-11 at 11.10.41 AM.png2013-11-11T00:11:43.000+0000107235

Comments

  1. Lee Morris 2017-06-19

    I am unable to reproduce this issue with the following environment; iPhone 7 (10.2) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170609091155 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131

JSON Source