{ "id": "122751", "key": "TIMOB-15778", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-11-26T00:22:54.000+0000", "created": "2013-11-21T10:50:18.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-3.2.0" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-06T09:59:33.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": "{code}\r\nvar modes = [Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT];\r\nvar modesEnabled = true;\r\n \r\nvar tabGroup = Ti.UI.createTabGroup({\r\n orientationModes: modes\r\n});\r\n \r\nvar tabWindow = Ti.UI.createWindow();\r\ntabGroup.addTab(Ti.UI.createTab({window: tabWindow, title: 'Lonely tab'}));\r\n \r\nvar toggleModesButton = Ti.UI.createButton({\r\n title: 'Toggle orientationModes'\r\n});\r\ntoggleModesButton.addEventListener('click', function() {\r\n tabGroup.orientationModes = modesEnabled ? [ ] : modes;\r\n modesEnabled = !modesEnabled;\r\n});\r\ntabWindow.add(toggleModesButton);\r\n \r\ntabGroup.open();\r\n{code}\r\n\r\nSteps to reproduce:\r\n1.Copy paste the code in app.js.\r\n2.Run the app.\r\n3.Click \"Toggle orientationModes\" buttonTest steps\r\n\r\nExpected result\r\n\r\n2. The window should open in landscape mode(supporting both landscape left and landscape right).\r\n3. Now the window should support only portrait mode.\r\n\r\nActual result\r\n3. Clicking the 'toggle orientation mode' does not make the app support Portrait orientation mode.\r\n", "attachment": [], "flagged": false, "summary": "iOS: setting orientationModes on a Ti.UI.TabGroup does not work", "creator": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested Environment:\r\n\r\nAppcelerator Studio: 3.2.0.201311200357\r\nSDK:3.2.0.v20131120142443\r\nalloy: 1.3.0\r\nacs: 1.0.7\r\nnpm: 1.3.2\r\ntitanium: 3.2.0-alpha\t\r\ntitanium-code-processor: 1.1.0-alpha\r\nXcode:5.0.2\r\nOS: Mac OSX 10.9\r\nDevice: iphone5S(V7.0.2)\r\n", "comment": { "comments": [ { "id": "281298", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is a invalid ticket, Since 3.1.3.GA (window's refactor). Once a window/NavigationGroup/TabGroup is opened you cannot change its orientationMode. \n\n", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-26T00:22:41.000+0000", "updated": "2013-11-26T00:22:41.000+0000" }, { "id": "282855", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as per above comments.\r\n\r\n", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-06T09:59:33.000+0000", "updated": "2013-12-06T09:59:33.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }