{ "id": "101479", "key": "TIMOB-10972", "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": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-07-23T11:51:58.000+0000", "created": "2012-09-19T03:04:34.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_window", "qe-ios090112", "qe-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" }, "inwardIssue": { "id": "101624", "key": "TIMOB-11032", "fields": { "summary": "iOS : Modal windows are not respecting orientation mode settings.(iOS 6 only)", "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": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-07-23T11:51:58.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": "This is not a regression. It occurs on 2.1.2 also on iOS 6 device/simulator. It works fine on iOS 5.\r\n\r\nIf you have 3 windows - one parent,one child and third one grandchild, each with their set of orientationmodes,then orientationmodes of grandchild window are over ruled by the child window.\r\n\r\nSteps to reproduce:\r\n1. Use the code below-\r\n{code}\r\nvar _window = Ti.UI.createWindow({\r\n\torientationModes : [Titanium.UI.LANDSCAPE_LEFT, Titanium.UI.LANDSCAPE_RIGHT],\r\n});\r\n\r\n\t\tvar aBtn = Ti.UI.createButton({\r\n\t\t\ttitle:'open',\r\n\t\t\theight: 100,\r\n\t\t\twidth: 100\r\n\t\t});\r\n\t\t\r\n\t\taBtn.addEventListener('click', function(){\r\n\t\t\tvar toplevel = Ti.UI.createWindow({\r\n\t\t\t\torientationModes : [Ti.UI.PORTRAIT, Ti.UI.UPSIDE_PORTRAIT],\r\n\t\t\t\tbackgroundColor : 'blue'\r\n\t\t\t});\r\n\r\n\t\t\tvar btn = Ti.UI.createButton({\r\n\t\t\t\ttitle:'close',\r\n\t\t\t\theight: 100,\r\n\t\t\t\twidth: 100\r\n\t\t\t});\r\n\t\t\r\n\t\t\tbtn.addEventListener('click', function() {\r\n\t\t \ttoplevel.close();\r\n\t\t\t});\r\n\t\t\ttoplevel.add(btn);\r\n\t\t\r\n\t\t\tvar win = Ti.UI.createWindow({\r\n\t\t\t\torientationModes : [Titanium.UI.LANDSCAPE_LEFT, Titanium.UI.LANDSCAPE_RIGHT],\r\n\t\t\t\tbackgroundColor : 'green'\r\n\t\t\t});\r\n\r\n\t\t\tvar b = Ti.UI.createButton({\r\n\t\t\t\ttitle : 'open',\r\n\t\t\t\twidth : 100,\r\n\t\t\t\theight : 50,\r\n\t\t\t\tbottom:0\r\n\t\t\t});\r\n\t\t\tb.addEventListener('click', function() {\r\n\t\t\t\twin.open({\r\n\t\t\t\t\tmodal : true\r\n\t\t\t\t});\r\n\t\t\t});\r\n\r\n\t\t\tvar b3 = Ti.UI.createButton({\r\n\t\t\t\ttitle : 'close',\r\n\t\t\t\twidth : 100,\r\n\t\t\t\theight : 50,\r\n\t\t\t\tbottom : 20\r\n\t\t\t});\r\n\t\t\tb3.addEventListener('click', function() {\r\n\t\t\t\twin.close();\r\n\t\t\t});\r\n\r\n\t\t\ttoplevel.add(b);\r\n\t\t\twin.add(b3);\r\n\t\t\ttoplevel.open(); \r\n\t\t});\r\n\t\t\r\n_window.add(aBtn);\r\n_window.open();\r\n{code}\r\n2. Click 'open' button\r\n3. Click 'open' button again\r\n\r\nExpected result:\r\n1. A black window with 'open' button should get displayed in landscape mode.\r\n2. A blue window with 'open' and 'close' button should get displayed in portrait mode.\r\n3. A green window with 'close' button should get displayed in landscape mode.\r\n\r\nActual result:\r\n1. A black window with 'open' button gets displayed in landscape mode.\r\n2. A blue window with 'open' and 'close' button gets displayed in portrait mode.\r\n3. A green window with 'close' button gets displayed in portrait mode.", "attachment": [], "flagged": false, "summary": "iOS 6: Window orientation modes are neglected for second level child window ", "creator": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK: 2.1.3.v20120918170114\r\nTitanium  Studio: 2.1.3.201209170816\r\nDevice : iPad iOS 6.0\r\nXcode : 4.5 \r\nMachine OS : MAC 10.8", "comment": { "comments": [ { "id": "220069", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull merged, checked to see if this was fixed as well.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-20T18:48:43.000+0000", "updated": "2012-09-20T18:48:43.000+0000" }, { "id": "220217", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and verified on:\r\nOS: Mac OS X Lion 10.7.4 \r\nTitanium Studio, build: 2.1.2.201208301612\r\nTitanium SDK, build: 2.1.3.v20120921141611\r\nDevice: iPhone 4S (6.0.GM)\r\n\r\nA green window with 'close' button gets displayed in landscape mode.", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-21T15:55:05.000+0000", "updated": "2012-09-21T15:55:05.000+0000" }, { "id": "220224", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix on:\r\nMAC OSX 10.8.1\r\nTitanium studio : 2.1.2.201208301612\r\nSDK version : 3.0.0.v20120921144915\r\nxcode 4.5\r\nbuilt with iOS6 SDK on Ipad 3 running iOS6 & on Iphone simulator.\r\n", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-09-21T16:15:24.000+0000", "updated": "2012-09-21T16:15:24.000+0000" }, { "id": "262817", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update labels", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-23T11:51:24.000+0000", "updated": "2013-07-23T11:51:24.000+0000" }, { "id": "262818", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with: \r\nSDK:3.1.2.v20130718094558\r\nAppcelerator Studio: 3.1.2.201307121651\r\nOS: OSX 10.7.5\r\nDevice:iPadmini(ios6)\r\nXcode: 4.6", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-23T11:51:58.000+0000", "updated": "2013-07-23T11:51:58.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }