Blank screen (flickering effect) when pressing back in navGroup. Only reproducible with iOS 4.3 & 2.0.1.x
1. Throw code to an app.js
2. Click "Next Page"
3. Click "Back"
4. Notice how the window flickers / get a blank screen only in 2.0.1 with 4.3
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
var rootwin = Ti.UI.createWindow({
navBarHidden:true,
top:'0dp',
bottom:'0dp',
left:'0dp',
right:'0dp',
orientationModes:[Titanium.UI.LANDSCAPE_LEFT, Titanium.UI.LANDSCAPE_RIGHT]
});
var rootNav = Ti.UI.iPhone.createNavigationGroup({
window:rootwin,
orientationModes:[Titanium.UI.LANDSCAPE_LEFT, Titanium.UI.LANDSCAPE_RIGHT]
});
var win1 = Ti.UI.createWindow({
backgroundColor:'red',
navBarHidden:true,
top:0,
left:0,
right:0,
bottom:0
});
var nextPage = Ti.UI.createButton({
title:'Next Page',
width:'300dp',
height:'50dp',
top:0,
left:0
});
win1.add(nextPage);
var testView = Ti.UI.createView({
backgroundColor:'gray',
//width:Ti.UI.FILL,
height:'300dp',
top:'50dp',
bottom:0,
right:0,
left:0
});
win1.add(testView);
nextPage.addEventListener('click', function(){
var newWin = Ti.UI.createWindow({
backgroundColor:'blue',
navBarHidden:true,
top:0,
left:0,
right:0,
bottom:0
});
var backButton = Ti.UI.createButton({
title:'Back',
width:'300dp',
height:'50dp',
top:0,
left:0
});
backButton.addEventListener('click', function(){
nav1.close(newWin);
});
newWin.add(backButton);
nav1.open(newWin);
});
var nav1 = Ti.UI.iPhone.createNavigationGroup({
window:win1,
top:0,
left:0,
right:0,
bottom:0,
visible:false
});
var wrapperwin = Ti.UI.createWindow({
navBarHidden:true,
top:0,
left:0,
right:0,
bottom:0
});
wrapperwin.add(nav1);
rootwin.add(wrapperwin);
rootwin.open();
nav1.visible = true;
Closing issue due to time passed and irrelevance of the ticket.