Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19169] iOS: Navbar buttons are displaced above the statusbar when using a fullscreen window

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionCannot Reproduce
Resolution Date2019-12-11T17:58:34.000+0000
Affected Version/sRelease 4.1.1
Fix Version/sn/a
ComponentsiOS
Labels3.4.0, 3.4.1, TCSupportTriage, fullscreen, ios8, navbar, reprod, statusbar
ReporterMarkus Eschenbach
AssigneeUnknown
Created2014-11-11T15:44:20.000+0000
Updated2019-12-11T17:58:34.000+0000

Description

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();
})();	

Attachments

FileDateSize
NavBarButton-Landscape-Bug.png2014-11-11T15:44:20.000+000030591
NavBarButton-Portrait-OKAY.png2014-11-11T15:44:20.000+000031130

Comments

  1. Lee Morris 2017-06-20

    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
  2. Alan Hutton 2019-12-11

    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

JSON Source