// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
// create tab group
var tabGroup = Titanium.UI.createTabGroup();
//
// create base UI tab and root window
//
var win1 = Titanium.UI.createWindow({
title:'Tab 1',
backgroundColor:'#fff',
navBarHidden: false,
tabBarHidden: true
});
var tab1 = Titanium.UI.createTab({
icon:'KS_nav_views.png',
title:'Tab 1',
window:win1
});
var b1 = Titanium.UI.createButton({
title:'Win 2',
height:40,
width:200,
top:30
});
win1.add(b1);
b1.addEventListener('click', function(e)
{
var w = Titanium.UI.createWindow({
fullscreen:true,
//url:'new_win.js',
barColor:'#111',
orientationModes:[Titanium.UI.LANDSCAPE_LEFT]
});
tab1.open(w);
});
tabGroup.addTab(tab1);
// open tab group
tabGroup.open();
1. Click Win2
2. Return to Tab1
h5. Actual result
Portrait size window in landscape mode
Note: it is a regression against iOS 7.1
PR master: https://github.com/appcelerator/titanium_mobile/pull/6033 PR 3_4_X: https://github.com/appcelerator/titanium_mobile/pull/6034