{ "id": "101624", "key": "TIMOB-11032", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14127", "description": "Sprint 2012-19 API", "name": "Sprint 2012-19 API", "archived": true, "released": true, "releaseDate": "2012-09-24" }, { "id": "14271", "description": "2012 Sprint 19", "name": "2012 Sprint 19", "archived": true, "released": true, "releaseDate": "2012-09-24" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-09-20T17:30:03.000+0000", "created": "2012-09-20T16:40:14.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "ios6", "qe-testadded" ], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" } ], "issuelinks": [ { "id": "21143", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "101479", "key": "TIMOB-10972", "fields": { "summary": "iOS 6: Window orientation modes are neglected for second level child window ", "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": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-01-15T03:50:57.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": [], "description": "This issue is not seen on iOS 5.1.\r\n\r\nSteps to reproduce:\r\n1.Replace the code in your app.js with the code below.\r\n\r\n{code}\r\n\r\nvar toplevel = Ti.UI.createWindow({\r\n orientationModes:[\r\n Ti.UI.PORTRAIT,\r\n Ti.UI.UPSIDE_PORTRAIT\r\n ],\r\n backgroundColor:'blue'\r\n});\r\n \r\nvar win = Ti.UI.createWindow({\r\n orientationModes:[\r\n Titanium.UI.LANDSCAPE_LEFT,\r\n Titanium.UI.LANDSCAPE_RIGHT\r\n ],\r\n backgroundColor:'green'\r\n});\r\n \r\n \r\n \r\nvar b = Ti.UI.createButton({\r\n title:'open',\r\n width:100,\r\n height:50\r\n});\r\nb.addEventListener('click', function() {\r\n win.open({modal:true});\r\n});\r\n \r\nvar b2 = Ti.UI.createButton({\r\n title:'open',\r\n width:100,\r\n height:50,\r\n top:20\r\n});\r\nb2.addEventListener('click', function() {\r\n var win2 = Ti.UI.createWindow({\r\n orientationModes:[Ti.UI.LANDSCAPE_RIGHT],\r\n backgroundColor:'red'\r\n });\r\n var b4 = Ti.UI.createButton({\r\n title:'close',\r\n width:100,\r\n height:50,\r\n bottom:20\r\n });\r\n win2.add(b4);\r\n b4.addEventListener('click', function() {\r\n win2.close();\r\n });\r\n \r\n \r\n \r\n \r\n win2.open();\r\n});\r\n \r\nvar b3 = Ti.UI.createButton({\r\n title:'close',\r\n width:100,\r\n height:50,\r\n bottom:20\r\n});\r\nb3.addEventListener('click', function() {\r\n win.close();\r\n});\r\n \r\nvar b4 = Ti.UI.createButton({\r\n title:'close',\r\n width:100,\r\n height:50,\r\n bottom:20\r\n});\r\nb4.addEventListener('click', function() {\r\n win2.close();\r\n});\r\n \r\ntoplevel.add(b);\r\nwin.add(b2);\r\nwin.add(b3);\r\n \r\n \r\ntoplevel.open();\r\n\r\n{code}\r\n\r\n2.Run it on a device/simulator.\r\n3.You will get a white window.\r\n4.Tap on open .\r\n5.You will get a window with blue background(in portrait orientation).\r\n6.Tap on open button on blue window.\r\n7.You will get a green window in portrait orientation.But according to the declared orientation in the code it should open in landscape_left or landscape_right mode.\r\n\r\nActual results:\r\n1.The green modal window totally ignores the orientation declared in the code & opens in portrait mode instead of landscape..\r\n\r\nExpected results:\r\n1.The green window should open in landscape mode.\r\n", "attachment": [], "flagged": false, "summary": "iOS : Modal windows are not respecting orientation mode settings.(iOS 6 only)", "creator": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Tested on:\r\nTitanium studio : 2.1.2.201208301612\r\nSDK version : 2.1.3.v2012091870114\r\nIpad 3 iOS 6\r\nXcode version 4.5\r\n", "comment": { "comments": [ { "id": "220048", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This seems like it might be related to an existing issue.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-20T16:47:28.000+0000", "updated": "2012-09-20T16:47:28.000+0000" }, { "id": "220055", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Duplicate of TIMOB-10972. PR for TIMOB-10973 should fix this.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-09-20T17:25:26.000+0000", "updated": "2012-09-20T17:25:26.000+0000" }, { "id": "234324", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with:\r\nSDK: 3.0.0 GA\r\nStudio:3.0.1.201212181159\r\nDevice: iPad3(v 6.0)\r\n\r\nGreen window displayed in landscape right orientation.", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-15T03:50:57.000+0000", "updated": "2013-01-15T03:50:57.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }