{ "id": "61833", "key": "TIMOB-1201", "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": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T02:46:30.000+0000", "created": "2011-04-15T02:46:29.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "iphone", "orientation", "window" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-02T19:22:51.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": "{html}
Using the orientationModes property when creating a window is\nignored in SDK 1.3.2 but works okay in previous SDK versions.
I'm surprised to see this moved to 1.5.0 when the documentation\nsays it's already supported (http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.....\nAgain, it worked fine prior to 1.3.2 when an SDK change broke\nit.
The following works for me:
\n\nvar win = Ti.UI.createWindow({\n backgroundColor:'white',\n orientationModes:[\n Titanium.UI.PORTRAIT,\n Titanium.UI.UPSIDE_PORTRAIT]\n});
\n
\nRemember, orientation modes are always passed as an array.