{ "id": "64277", "key": "TIMOB-3612", "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": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-05-16T16:20:41.000+0000", "created": "2011-04-18T13:39:07.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_orientation", "qe-review", "qe-testadded" ], "versions": [ { "id": "11233", "name": "Release 1.6.0", "archived": true, "released": true, "releaseDate": "2011-02-23" } ], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-14T04:39:59.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Setting the orientationModes property on a window does not have any effect. If the window is heavyweight then the window will not rotate. If the window is lightweight, the window will rotate in any direction. Both behaviors happen irrelevant of what is set for orientationModes.\r\n\r\nStep 1: run the code below\r\nStep 2: if fullscreen is not set, notice that the window rotates to any orientation no matter what is set for win.orientationModes\r\nStep 3: if fullscreen is true, notice that the window will only be portrait no matter what is set for win.orientationModes\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\t// fullscreen: true,\r\n\tbackgroundColor: 'blue'\r\n});\r\nwin.orientationModes = [Titanium.UI.PORTRAIT,Ti.UI.LANDSCAPE_RIGHT, Ti.UI.LANDSCAPE_LEFT];\r\n// win.orientationModes = [Titanium.UI.PORTRAIT];\r\nvar txt = Titanium.UI.createTextField({\r\n\thintText:'This is text',\r\n\twidth:200\r\n});\r\n\r\nwin.add(txt);\r\n\r\nwin.open();\r\n{code}\r\n\r\nh2. Tested On\r\nAndroid 2.2 Emulator, TiSDK 1.6.1\r\nGalaxy Tab 2.2.1, TiSDK 1.6.1\r\n\r\nh2. Associated Helpdesk Ticket\r\nhttp://support-admin.appcelerator.com/display/ZYS-62136-677", "attachment": [], "flagged": false, "summary": "Android: orientationModes does not work", "creator": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android 2.2 Emulator, TiSDK 1.6.1\r\nGalaxy Tab 2.2.1, TiSDK 1.6.1", "comment": { "comments": [ { "id": "157177", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This error is still reproducible on Ti SDK 1.7.0", "updateAuthor": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-20T12:32:39.000+0000", "updated": "2011-06-20T12:32:39.000+0000" }, { "id": "195093", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "body": "Issue fixed in Release 2.0", "updateAuthor": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2012-05-16T15:35:59.000+0000", "updated": "2012-05-16T15:35:59.000+0000" }, { "id": "214282", "author": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Closing and verfied on:\r\nTested with Titanium SDK: 2.2.0.v20120808154112\r\nTested with Titanium Studio: 2.1.1.201207271312", "updateAuthor": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2012-08-14T04:39:59.000+0000", "updated": "2012-08-14T04:39:59.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }