{ "id": "61557", "key": "TIMOB-925", "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": "11224", "name": "Release 1.4.0", "archived": true, "released": true, "releaseDate": "2010-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:54:41.000+0000", "created": "2011-04-15T02:39:20.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:54:41.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}

see http://helpdesk.appcelerator.net/tickets/2392

\n

code to reproduce:

\n
\nvar inner1 = Ti.UI.createWindow({ title:'Window1' }); \nvar inner2 = Ti.UI.createWindow({ title:'Window2' }); \nvar nav = Ti.UI.iPhone.createNavigationGroup({ window: inner1 }); 
\n
\n\n\n
\nvar win = Ti.UI.createWindow(); \nwin.add(nav); \nwin.open();
\n
\n\n\n
\nsetTimeout(function(){ \nTi.API.info('opening'); \nnav.open(inner2); \n}, 1000);
\n
\n\n\n
\nsetTimeout(function(){ \nTi.API.info('closing'); \ninner2.close(); \n}, 2000);
\n
{html}", "attachment": [], "flagged": false, "summary": "can't close window in nav group", "creator": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "124354", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Part of the issue is that nav.open() calls must use a\ncorresponding nav.close(), NOT window.close() (due to both\nnavigation stack management and internal gunk that makes nav\ncontrollers not play nice with the windowing system).

\n

There are still problems with nav.close(). Keeping this open to\nsignify them.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:39:20.000+0000", "updated": "2011-04-15T02:39:20.000+0000" }, { "id": "124355", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [c7b713fdc61dd903e3dbef420f76eb1663f07bb1])\nCloses #925: Ti.UI.iPhone.NavigationGroup.close() now\nmanages the view stack. \nhttp://github.com/appcelerator/titanium_mobile/commit/c7b713fdc61dd...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:39:21.000+0000", "updated": "2011-04-15T02:39:21.000+0000" }, { "id": "124356", "author": { "name": "jaysnominard", "key": "jaysnominard", "displayName": "Jaysno Minard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This does not seem to work. Using both the 1.4.x nightly and the\n1.5.0 nightly the navigation group will return to the upper level\non navGroup.close(subWindow) but a 2nd time through navigation and\ncalling close ends up stuck in a black screen with no way out.

{html}", "updateAuthor": { "name": "jaysnominard", "key": "jaysnominard", "displayName": "Jaysno Minard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:39:21.000+0000", "updated": "2011-04-15T02:39:21.000+0000" }, { "id": "124357", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

We need sample code to reproduce this issue.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:39:22.000+0000", "updated": "2011-04-15T02:39:22.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }