Problem description
Opening a fullscreen window and switch to the landscape mode! Close this window and the underlying navigationwindow. The navbar button of the first navigationwindow is displaced above the statusbar.
This behavior only appear when you switch from the portrait to the landscape mode in the fullscreen window
Steps to reproduce
1. Start app in portrait mode
2. Tap the button "Open Win 2"
3. Tap the button "Open FS Win"
4. Rotate the device to the landscape mode
5. Tap the button "close"
6. Tap the button "Close Win 2"
7. the Navbar button is displaces
Test case
(function() {
var orientModes = [Titanium.UI.PORTRAIT,Titanium.UI.UPSIDE_PORTRAIT,Titanium.UI.LANDSCAPE_LEFT,Titanium.UI.LANDSCAPE_RIGHT];
var win1 = Ti.UI.createWindow({backgroundColor: '#FFF'});
var win2 = Ti.UI.createWindow({backgroundColor: '#FFF'});
win1.orientationModes = orientModes;
win2.orientationModes = orientModes;
var closeWin1Btn = Ti.UI.createButton({title: 'Close Win 1'});
var closeWin2Btn = Ti.UI.createButton({title: 'Close Win 2'});
var navWin1 = Titanium.UI.iOS.createNavigationWindow({window: win1});
var navWin2 = Titanium.UI.iOS.createNavigationWindow({window: win2});
var openWin2Btn = Ti.UI.createButton({title: 'Open Win 2'});
var openFullscreenWinBtn = Ti.UI.createButton({title: 'Open FS Win'});
openWin2Btn.addEventListener('click', function(){
navWin2.open();
});
closeWin1Btn.addEventListener('click', function(){
navWin1.close();
});
closeWin2Btn.addEventListener('click', function(){
navWin2.close();
});
openFullscreenWinBtn.addEventListener('click', function(){
var fullscreenWin = Ti.UI.createWindow({backgroundColor: '#000', fullscreen: true});
var closeFSWinBtn = Ti.UI.createButton({title: 'close'});
var label = Ti.UI.createLabel({left:20,top:20,width:Titanium.UI.FILL,font:{fontSize:12},color: '#FFF', text:'Rotate to landscape mode'});
fullscreenWin.orientationModes = orientModes;
closeFSWinBtn.addEventListener('click', function(){fullscreenWin.close();});
fullscreenWin.add(label);
fullscreenWin.add(closeFSWinBtn);
fullscreenWin.open();
});
win1.add(openWin2Btn);
win2.add(openFullscreenWinBtn);
win1.leftNavButton = closeWin1Btn;
win2.leftNavButton = closeWin2Btn;
navWin1.open();
})();
I am able to reproduce this issue with the following environment; iPhone 7 (10.2) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170620103414 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
Closing. Unable to reproduce the issue. Axway Appcelerator Studio, build: 5.1.4.201909061933 macOS : 10.15 Node.js Version : 8.9.1 npm Version : 5.5.1 Appcelerator CLI : 7.1.2 Titanium CLI CLI Version : 5.2.1 node-appc Version : 0.2.49 Titanium SDKs : 8.3.0.GA iPhone 11 13.2.2 iPhone 8 13.2.2