{ "id": "62190", "key": "TIMOB-1558", "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": [ { "id": "11363", "description": "Mobile 1.8.0 M10", "name": "Sprint 2011-31", "archived": true, "released": true, "releaseDate": "2011-08-08" } ], "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": "2011-08-02T13:41:22.000+0000", "created": "2011-04-15T02:56:00.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "11367", "description": "", "name": "Release 1.7.1", "archived": true, "released": true, "releaseDate": "2011-06-21" } ], "issuelinks": [ { "id": "11643", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "62196", "key": "TIMOB-1564", "fields": { "summary": "Window closes before animation ends, iOS 4 sdk 1.4", "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": "Trivial", "id": "5" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-08-02T14:30:51.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": "h1. Problem\r\nProgrammatically closing a window in a navigation group causes it to disappear before it slides off the screen.\r\n\r\nh2. Reproduction\r\nDrop the following in an app.js.\r\n1. You'll start off by seeing a blue window. This is the outermost window in the nav group.\r\n2. After 2 seconds, a green window will open in the nav group. It will slide in. We're good so far.\r\n3. After 2 seconds, the green window will close; it will disappear, revealing the red background of the nav group's container. The blue window will slide back in to place.\r\n4. After 2 seconds, the green window will open again. Click the \"Back\" button this time, and you'll see it slides away properly without disappearing first.\r\n{code:title=app.js}\r\nvar outerWin = Ti.UI.createWindow({ backgroundColor: 'red' });\r\n\r\nvar childWin1 = Ti.UI.createWindow({ backgroundColor: 'blue' });\r\nvar childWin2 = Ti.UI.createWindow({ backgroundColor: 'green' });\r\n\r\nvar nav = Ti.UI.iPhone.createNavigationGroup({ window: childWin1 });\r\nouterWin.add(nav);\r\n\r\nouterWin.open();\r\n\r\nfunction open() {\r\n nav.open(childWin2, { animated: true });\r\n setTimeout(close, 2000);\r\n}\r\nfunction close() {\r\n nav.close(childWin2, { animated: true });\r\n setTimeout(open, 2000);\r\n}\r\n\r\nsetTimeout(open, 2000);\r\n{code}\r\n\r\nh2. Expected Behavior\r\nWhen you programmatically close a window in a nav group, it should slide away smoothly without disappearing.\r\n\r\nh3. Associated Helpdesk Ticket\r\nhttp://appc.me/XTG-54178-122", "attachment": [], "flagged": false, "summary": "iOS - Closing a window in a navigationGroup closes the window before sliding back", "creator": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "subtasks": [], "reporter": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "environment": "BROKEN in iPhone Simulator 4.3", "comment": { "comments": [ { "id": "126036", "author": { "name": "chrismi", "key": "chrismi", "displayName": "chrismi", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}
I'm kind of surprised this has passed QA. I hope you are able to\npatch this quickly, as it's a show stopper for many navigation\ngroup based applications.
\nAlternatively, is there a way to programatically click the back\nbutton instead? Clicking the back button results in the desired\nbehavior.
This should really be fixed in 1.5.0.
\nIt's a showstopper for my app, and probably many others too...
Do you have any information about the progress of this\nticket?
\nWe have an app for a customer ready for submission, just\nawaiting this bug to be fixed. As this looks now, table-view based\napps are bad-looking. I sincerely hope this can be fixed in time\nfor the 1.5.0 release. I also have the feeling that this bug is the\nroot cause of several other currently open tickets for the 1.5.0\nrelease.