{ "id": "90006", "key": "TIMOB-8725", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13405", "description": "Sprint 2012-09 API", "name": "Sprint 2012-09 API", "archived": true, "released": true, "releaseDate": "2012-05-06" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-30T15:50:23.000+0000", "created": "2012-04-13T15:06:29.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-ios040912" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [ { "id": "16585", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "86183", "key": "TIMOB-7569", "fields": { "summary": "iPhone: Opening a normal window after a modal window will reopen the normal window on close of modal", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-06-14T10:02:27.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": "Description:\r\nWhile running test case in landscape mode, new blue window comes in incorrect (portrait) mode.\r\nThis bug occurs on 2.0.0 and 1.8.2.\r\n\r\nSteps:\r\n1. Run the following code on iPad in landscape mode:\r\n{code}\r\nfunction modalWindow(){\r\n var b = Ti.UI.createButton({title:'close'});\r\n var a = Ti.UI.createButton({title:'open win'});\r\n \r\n var w = Ti.UI.createWindow({\r\n backgroundColor:'red',\r\n rightNavButton:b,\r\n leftNavButton:a\r\n });\r\n \r\n w.add(Ti.UI.createLabel({text:'This is a normal window', top:20, textAlign:'center', height:40, backgroundColor:'white'}));\r\n \r\n b.addEventListener('click', function(){\r\n w.close();\r\n });\r\n a.addEventListener('click', function(){\r\n normalWindow().open();\r\n });\r\n return w;\r\n}\r\nfunction normalWindow(){\r\n var b = Ti.UI.createButton({title:'close',width:200,height:40, top:100});\r\n \r\n var w = Ti.UI.createWindow({\r\n backgroundColor:'blue'\r\n });\r\n w.add(Ti.UI.createLabel({text:'This is a normal window', top:20, textAlign:'center', height:40, backgroundColor:'white'}));\r\n w.add(b);\r\n b.addEventListener('click', function(){\r\n w.close();\r\n });\r\n return w;\r\n}\r\n(function(){\r\n var win = Ti.UI.createWindow({\r\n backgroundColor:'green'\r\n });\r\n \r\n var btn = Ti.UI.createButton({\r\n width:100,\r\n height:40,\r\n title:'open modal'\r\n });\r\n \r\n win.add(btn);\r\n \r\n btn.addEventListener('click', function(){\r\n modalWindow().open({modal:true});\r\n });\r\n \r\n win.open();\r\n})();\r\n{code}\r\n\r\n2. Press the \"Open modal\" button\r\n3. Press the \"Open win\" button in the Navbar\r\n\r\nExpected result:\r\nShould see new blue window in correct mode\r\n\r\nActual result:\r\nThe new blue window comes in incorrect (portrait) mode", "attachment": [ { "id": "27028", "filename": "Screenshot 2012.04.13 14.52.22.png", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-13T15:06:29.000+0000", "size": 28295, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: New window is displayed in portrait while testing in landscape mode", "creator": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested on:\r\nTitanium Studio, build: 2.0.1.201204101854\r\nSDK: 2.0.1.v20120410103239\r\nDevice: iPad 2 (4.3.5)", "comment": { "comments": [ { "id": "193188", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/2087", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-04-30T13:36:34.000+0000", "updated": "2012-04-30T13:36:34.000+0000" }, { "id": "198500", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing bug as fixed.\r\nTested and verified on:\r\nTitanium Studio, build: 2.1.0.201206131907\r\nTitanium SDK: 2.1.0.v20120613210250", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-14T10:02:27.000+0000", "updated": "2012-06-14T10:02:27.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }