[TIMOB-4359] Nav bar appears underneath status bar
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2017-07-27T18:00:02.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | ios |
Reporter | Matthew Apperson |
Assignee | Ingo Muschenetz |
Created | 2011-06-10T04:45:44.000+0000 |
Updated | 2017-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});
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?
Closing due to inactivity. If this issue still exists, please raise a new ticket.