{ "id": "63509", "key": "TIMOB-2877", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-07-26T13:40:15.000+0000", "created": "2011-04-15T03:31:49.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [], "versions": [ { "id": "11233", "name": "Release 1.6.0", "archived": true, "released": true, "releaseDate": "2011-02-23" } ], "issuelinks": [ { "id": "19329", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-26T21:28:58.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

When opening a modal window, if the windows navBarHidden\r\nproperty is set to true, opening it the first time is fine. After\r\nclosing it and reopening it, the modal window shows up behind the\r\nphones status bar at the top.

{html}", "attachment": [], "flagged": false, "summary": "iOS: Modal window shows up behind the phones status bar", "creator": { "name": "nilsd", "key": "nilsd", "displayName": "Nils D", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nilsd", "key": "nilsd", "displayName": "Nils D", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "129605", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

I'm confirming that this is a bug with the following code:

\n
\n//create our main window\nvar win = Ti.UI.createWindow({backgroundColor:'#ccc'});\n//create a button and add it to the window\nvar button = Ti.UI.createButton({title:'click to open modal',height:50,width:100});\nwin.add(button);\n\n//create a sencond window with a button and a label\nvar win2 = Ti.UI.createWindow({backgroundColor:'#999',navBarHidden:true});\nvar close = Ti.UI.createButton({title:'close',height:50,width:100});\nvar label = Ti.UI.createLabel({text:'this label\\'s top is 0', height:20,top:0,backgroundColor:'#fff'});\nwin2.add(label);\nwin2.add(close);\n\n//open our main window\nwin.open();\n\n//listeners to open and close the second window\nbutton.addEventListener('click', function(){\n    win2.open({modal:'true'});\n});\nclose.addEventListener('click',function(){\n    win2.close();\n});\n
\n

To reproduce:

\n
    \n
  1. Insert this code into app.js
  2. \n
  3. Run the app
  4. \n
  5. Click to open the window
  6. \n
  7. Close the window
  8. \n
  9. Do step 3 again
  10. \n
\n

I came across this with the following HelpDesk ticker:
\nhttp://developer.appcelerator.com/helpdesk/view/69801

\n

Tested on Ti SDK 1.6 (Jan 28 2011 19:35 r5341f235)

{html}", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:31:49.000+0000", "updated": "2011-04-15T03:31:49.000+0000" }, { "id": "129606", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Going to assume this is an iOS bug.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:31:49.000+0000", "updated": "2011-04-15T03:31:49.000+0000" }, { "id": "209739", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can't reproduce SDK 2.2.0.014b86f, iPhone Sim 5.1", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-26T13:40:15.000+0000", "updated": "2012-07-26T13:40:15.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }