Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3029] Double Nav bar on iPad when launching modal with NavGroup

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2011-06-01T15:55:46.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterMelloMike
AssigneeReggie Seagraves
Created2011-04-15T03:35:06.000+0000
Updated2011-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

FileDateSize
screen-shot-2011-02-02-at-21625-pm.png2011-04-15T03:35:06.000+0000158580

Comments

  1. Reggie Seagraves 2011-06-01

    This appears to have been fixed by a previous checkin.
  2. Natalie Huynh 2011-06-01

    Tested with May 31 2011 17:35 r5aa431bc setting navBarHidden:true on the win now works and display as expected

JSON Source