Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4359] Nav bar appears underneath status bar

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionWon't Fix
Resolution Date2017-07-27T18:00:02.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsios
ReporterMatthew Apperson
AssigneeIngo Muschenetz
Created2011-06-10T04:45:44.000+0000
Updated2017-07-27T18:00:02.000+0000

Description

When creating a window, adding a navigation group to it, and adding a window to that navigation group, and then opening the root window as a modal window, when you open it the first time, it works fine, but then if you close it and then open it again, the window slides all the way up to the top of the screen and the navbar slides up partially underneath the status bar (the same behavior that would occur if the status bar was completely hidden, but it's not)
var open = Ti.UI.createButton({
	title:'Open nav group',
	width:200,
	height:40
});
open.addEventListener('click', function() {
	modal.open({modal:true});
});
Ti.UI.currentWindow.add(open);

var modal = Ti.UI.createWindow({
	navBarHidden:true
});

var modalWin = Ti.UI.createWindow({
	backgroundColor:"red"
});

var nav = Ti.UI.iPhone.createNavigationGroup({
	window:modalWin
});

var done = Titanium.UI.createButton({
	systemButton:Titanium.UI.iPhone.SystemButton.DONE
});

modalWin.rightNavButton = done;
done.addEventListener('click',function()
{
	modal.close();
});

modal.add(nav);
modal.open({modal:true});

Comments

  1. Todd Trann 2012-02-23

    We are seeing similar behaviour with one of our apps on iOS 4.2.1, using mobile SDK 1.8.2. It doesn't happen with iOS 5. Are you able to replicate this problem?
  2. Lee Morris 2017-07-27

    Closing due to inactivity. If this issue still exists, please raise a new ticket.

JSON Source