Problem Description
The entire screen goes blank after a few rotation changes.
Run the attached app.js as iPad simulator and rotate left, rotate right a few times. The entire window is lost (goes blank) on rotation change.
Steps to reproduce
1. Create a new mobile project (classic titanium)
2. Paste this to app.js:
var tabGroup = Ti.UI.createTabGroup();
var tabWindow1 = Ti.UI.createWindow({
backgroundColor: 'red'
});
var tabWindow2 = Ti.UI.createWindow({
backgroundColor: 'pink'
});
tabWindow1.addEventListener('focus', function(e) {
Ti.API.info('tabWindow1 FOCUS');
});
tabWindow1.addEventListener('blur', function(e) {
Ti.API.info('tabWindow1 BLUR');
});
tabWindow2.addEventListener('focus', function(e) {
Ti.API.info('tabWindow2 FOCUS');
});
tabWindow2.addEventListener('blur', function(e) {
Ti.API.info('tabWindow2 BLUR');
});
var tab1 = Ti.UI.createTab({
tintColor: 'black',
title: 'Tab 1',
window: tabWindow1
});
var tab2 = Ti.UI.createTab({
tintColor: 'black',
title: 'Tab 2',
window: tabWindow2
});
tabGroup.addTab(tab1);
tabGroup.addTab(tab2);
var detailWindow = Ti.UI.createWindow({
backgroundColor: 'gray'
});
var navWindow = Ti.UI.iOS.createNavigationWindow({
window: detailWindow
});
var splitWindow = Ti.UI.iPad.createSplitWindow({
detailView: navWindow,
masterView: tabGroup,
});
splitWindow.addEventListener('visible',function(e){
if (e.view == 'detail') {
e.button.title = "Popover";
detailWindow.leftNavButton = e.button;
}
else if (e.view == 'master') {
detailWindow.leftNavButton = null;
}
});
splitWindow.open();
3. Run it in device.
From my testing, it looks like this has been fixed in Ti SDK 3.4.0.GA, although this ticket is not updated to reflect that. Can QA please confirm?
Not reproducible using the refactored
Ti.UI.iOS.SplitWindow
these days.Closing ticket as the issue cannot be reproduced anymore, with reference to the above comment.