[TIMOB-3029] Double Nav bar on iPad when launching modal with NavGroup
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-06-01T15:55:46.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | MelloMike |
Assignee | Reggie Seagraves |
Created | 2011-04-15T03:35:06.000+0000 |
Updated | 2011-06-01T15:55:46.000+0000 |
Description
I've attached the "bug" I'm currently getting when using modal windows on iPad.
var win = Titanium.UI.createWindow();
var redWin = Titanium.UI.createWindow({
backgroundColor:"red",
title:"Red Window"
});
var nav = Titanium.UI.iPhone.createNavigationGroup({
window: redWin
});
win.add(nav);
win.open({
modal:true,
modalStyle: Ti.UI.iPhone.MODAL_PRESENTATION_FORMSHEET
});
When running the above code, I get two nav bars. If I set navBarHidden on the "win" object... the modal ignores the modalStyle property. When I set the navBarHidden on the "redWin" object.. I don't get "title" or the navigation elements on the nav bar.
If this is the wrong way to get a navGroup into an iPad modal with modalStyle set, please let me know.
Attachments
File | Date | Size |
---|---|---|
screen-shot-2011-02-02-at-21625-pm.png | 2011-04-15T03:35:06.000+0000 | 158580 |
This appears to have been fixed by a previous checkin.
Tested with May 31 2011 17:35 r5aa431bc setting navBarHidden:true on the win now works and display as expected