{ "id": "86183", "key": "TIMOB-7569", "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": "12095", "description": "", "name": "Sprint 2012-03", "archived": true, "released": true, "releaseDate": "2012-02-12" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-02-14T23:29:03.000+0000", "created": "2012-02-07T14:46:06.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "module_window", "parity", "qe-testadded" ], "versions": [], "issuelinks": [ { "id": "16585", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "90006", "key": "TIMOB-8725", "fields": { "summary": "iOS: New window is displayed in portrait while testing in landscape mode", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-10T06:21:17.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": "h3. The problem:\r\nWhen opening a non-modal window on top of a modal, that window will be still opened after itself, as well as the modal window, is closed.\r\n\r\nh3. The sample code:\r\n{code}\r\nfunction modalWindow(){\r\n\tvar b = Ti.UI.createButton({title:'close'});\r\n\tvar a = Ti.UI.createButton({title:'open win'});\r\n\t\r\n\tvar w = Ti.UI.createWindow({\r\n\t\tbackgroundColor:'red',\r\n\t\trightNavButton:b,\r\n\t\tleftNavButton:a\r\n\t});\r\n\r\n\tw.add(Ti.UI.createLabel({text:'This is a normal window', top:20, textAlign:'center', height:40, backgroundColor:'white'}));\r\n\r\n\tb.addEventListener('click', function(){\r\n\t\tw.close();\r\n\t});\r\n\ta.addEventListener('click', function(){\r\n\t\tnormalWindow().open();\r\n\t});\r\n\treturn w;\r\n}\r\nfunction normalWindow(){\r\n\tvar b = Ti.UI.createButton({title:'close',width:200,height:40, top:100});\r\n\t\r\n\tvar w = Ti.UI.createWindow({\r\n\t\tbackgroundColor:'blue'\r\n\t});\r\n\tw.add(Ti.UI.createLabel({text:'This is a normal window', top:20, textAlign:'center', height:40, backgroundColor:'white'}));\r\n\tw.add(b);\r\n\tb.addEventListener('click', function(){\r\n\t\tw.close();\r\n\t});\r\n\treturn w;\r\n}\r\n(function(){\r\n\tvar win = Ti.UI.createWindow({\r\n\t\tbackgroundColor:'green'\r\n\t});\r\n\r\n\tvar btn = Ti.UI.createButton({\r\n\t\twidth:100,\r\n\t\theight:40,\r\n\t\ttitle:'open modal'\r\n\t});\r\n\r\n\twin.add(btn);\r\n\r\n\tbtn.addEventListener('click', function(){\r\n\t\tmodalWindow().open({modal:true});\r\n\t});\r\n\r\n\twin.open();\r\n})();\r\n{code}\r\n\r\nh3. To Reproduce:\r\n\r\n1. Open run the app in app.js.\r\n2. Open the modal window with the white button.\r\n3. Open the normal window with the nav button with title: \"open win\"\r\n4. Close that window\r\n5. Close the modal window\r\n\r\nh3. Result:\r\n\r\nThe normal window appears again after it has been closed.", "attachment": [], "flagged": false, "summary": "iPhone: Opening a normal window after a modal window will reopen the normal window on close of modal", "creator": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "iPhone\r\nTi SDK 1.9.0.v20120207124634", "comment": { "comments": [ { "id": "182805", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio build 1.0.8.201201262211\r\nTi Mob SDK 1.9.0.v20120210144634\r\nOSX Lion 10.7.3\r\niPhone 4S OS 5.0.1, iPhone Sim 4.3\r\n\r\nVerified expected behavior occurs", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-10T15:19:39.000+0000", "updated": "2012-02-10T15:19:39.000+0000" }, { "id": "283506", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/4967\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-10T06:21:17.000+0000", "updated": "2013-12-10T06:21:17.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }