{ "id": "63973", "key": "TIMOB-3341", "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": "11358", "description": "Mobile 1.8.0 M05", "name": "Sprint 2011-26", "archived": true, "released": true, "releaseDate": "2011-07-04" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-10-27T15:46:16.000+0000", "created": "2011-04-15T03:42:30.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "defect", "ios", "reported-1.5.1", "reported-1.6.0", "rplist" ], "versions": [ { "id": "11233", "name": "Release 1.6.0", "archived": true, "released": true, "releaseDate": "2011-02-23" } ], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-10-27T15:46:16.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 you have a navGroup and open a new window using it and then\r\nclose the window using the navGroup the window turns black before\r\nthe navGroup goes back. If you click the back button the window\r\ndoes not turn black before the navGroup goes back to the previous\r\npage.

\r\n

Step 1: launch the sample code below
\r\nStep 2: tap the red window to open the blue window
\r\nStep 3: click the 'close' button on the blue window to go back to\r\nthe red one
\r\nStep 4: notice that the blue window turns black before the slide\r\nanimation back to the red window
\r\nStep 5: click on the red window again
\r\nStep 6: tap the left nav button
\r\nStep 7: notice that the blue window does not turn black before\r\ngoing back to the red window

\r\n

app.js

\r\n
\r\nvar win = Titanium.UI.createWindow();\r\n\r\nvar win1 = Titanium.UI.createWindow({\r\n    backgroundColor:\"red\",\r\n    title:\"Red Window\"\r\n});\r\nwin1.addEventListener('click', function(){\r\n    nav.open(toolsWindow);\r\n});\r\n\r\nvar nav = Titanium.UI.iPhone.createNavigationGroup({\r\n   window: win1\r\n});\r\n\r\nvar toolsWindow = Ti.UI.createWindow({\r\n    title: 'Blue Window',\r\n    url: 'tools_window.js',\r\n    nav: nav,\r\n    exitOnClose: false,\r\n    backgroundColor: 'blue'\r\n});\r\n\r\nwin.add(nav);\r\nwin.open();\r\n
\r\n

tools_window.js

\r\n
\r\nvar win = Ti.UI.currentWindow;\r\n\r\nvar button = Ti.UI.createButton({\r\n    title: 'close',\r\n    height: 40,\r\n    width: 300,\r\n\r\n});\r\nbutton.addEventListener('click', function(e) {\r\n    Ti.API.info('clicked close');\r\n    win.nav.close(win);\r\n});\r\n\r\nwin.add(button);\r\n
\r\n

Tested on

\r\n

TiSDK 1.5.1, 1.6.0, iOS SDK 4.2

\r\n

Associated Helpdesk Ticket

\r\n

http://developer.appcelerator.com/helpdesk/view/76439

{html}", "attachment": [], "flagged": false, "summary": "iOS: navGroup closing window turns black before animation", "creator": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "133917", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Similar thing happens in a tabgroup. Replace the app.js code from above with this one:\n{code}\n\nvar tabgroup = Ti.UI.createTabGroup();\n\nvar win1 = Titanium.UI.createWindow({\n backgroundColor:\"red\",\n title:\"Red Window\"\n});\nvar tab = Ti.UI.createTab({\n\twindow: win1\n});\n\nwin1.addEventListener('click', function(){\n \tvar toolsWindow = Ti.UI.createWindow({\n\t title: 'Blue Window',\n\t url: 'd.js',\n\t nav: tab,\n\t exitOnClose: false,\n\t backgroundColor: 'blue'\n\t});\n tab.open(toolsWindow);\n});\n\ntabgroup.addTab(tab);\ntabgroup.open();\n{code}\nWhen closing the next window with the custom button, the window does animate to the side and closes, but the navBar elements stay in their place instead of sliding over with the window the way they would by pressing the built in back button.\n\nThis bug seems related, that's why I'm not opening a separate ticket for it.\n\nHelpdesk ticket: http://support.appcelerator.com/tickets/APP-218955/homepage", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-05-18T13:48:25.000+0000", "updated": "2011-05-18T13:48:25.000+0000" }, { "id": "157964", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/169 the pull request associated with it", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-28T16:06:57.000+0000", "updated": "2011-06-28T16:06:57.000+0000" }, { "id": "157969", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Its been merged and was cherry picked into 1.7.x", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-28T17:46:40.000+0000", "updated": "2011-06-28T17:46:40.000+0000" }, { "id": "164400", "author": { "name": "vsingh", "key": "vsingh", "displayName": "Vikramjeet Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested On: \nMac OSX Lion\nTiMob: 1.8.0v20110819142548\nTiStud: 1.0.4.201108101535\n\nDevices:\niPhone4 version 4.2.10\niPad2 version 4.3.5\niPod 3", "updateAuthor": { "name": "vsingh", "key": "vsingh", "displayName": "Vikramjeet Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-29T13:58:33.000+0000", "updated": "2011-08-29T13:58:33.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }