{ "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.

\n

Alternatively, is there a way to programatically click the back\nbutton instead? Clicking the back button results in the desired\nbehavior.

{html}", "updateAuthor": { "name": "chrismi", "key": "chrismi", "displayName": "chrismi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:56:01.000+0000", "updated": "2011-04-15T02:56:01.000+0000" }, { "id": "126037", "author": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "body": "{html}

This should really be fixed in 1.5.0.
\nIt's a showstopper for my app, and probably many others too...

{html}", "updateAuthor": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "created": "2011-04-15T02:56:01.000+0000", "updated": "2011-04-15T02:56:01.000+0000" }, { "id": "126038", "author": { "name": "chrismi", "key": "chrismi", "displayName": "chrismi", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Do you have any information about the progress of this\nticket?

\n

We 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.

{html}", "updateAuthor": { "name": "chrismi", "key": "chrismi", "displayName": "chrismi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:56:01.000+0000", "updated": "2011-04-15T02:56:01.000+0000" }, { "id": "159498", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "I updated the ticket based on customer interest; it should be much easier to repro now, and the bug reported here should be clearer. Let me know if there's any additional details I can get to grease the wheels on this one.", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-07-14T07:39:27.000+0000", "updated": "2011-07-14T07:39:27.000+0000" }, { "id": "159499", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "Forgot to update the affected version and test environment. Done...", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-07-14T07:40:09.000+0000", "updated": "2011-07-14T07:40:09.000+0000" }, { "id": "159924", "author": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pro customer waiting for resolution.\r\nHD Ticket: http://appc.me/c/APP-247321", "updateAuthor": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-19T08:49:50.000+0000", "updated": "2011-07-19T08:49:50.000+0000" }, { "id": "161557", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I do believe this was solved in another bug (possibly duplicate of TIMOB-1564).\n\nOne thing I noticed is that the test reuses the same window over and over, and using the back button during the script does make things run off the rails, in that the script tries to then open an already-open window (shouldn't be done).", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-02T13:41:22.000+0000", "updated": "2011-08-02T13:41:22.000+0000" }, { "id": "161565", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "Agreed, I can't reproduce anymore (on 1.7.2). It must have been fixed by one of our other changes.", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-08-02T14:30:51.000+0000", "updated": "2011-08-02T14:30:51.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }