{ "id": "63369", "key": "TIMOB-2737", "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": "11239", "name": "Release 1.6.0 M06", "archived": true, "released": true, "releaseDate": "2011-01-24" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:59:56.000+0000", "created": "2011-04-15T03:28:08.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "dialog", "ios", "optiondialog", "options", "orientationmodes", "orientations", "release-1.6.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:59:56.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}
The Option Dialog appears sideways on landscape mode. Image\nattached.
\nTested with ticket http://developer.appcelerator.com/helpdesk/view/63531
\nAnd in KS:
\nIn the KitchenSink, added orientation modes to\noptions_dialog.js
For those who need it, Roger has posted a possible workaround\nfor this \nhere
hal: great, thanks for that
ah, looking at it closer I'd have to check which orientation the\ncurrent window is, and pass in a landscape argument every time I\nuse an option dialog which is rather inconvenient. I think I'll\nwait for a proper fix instead
(from [1a46446150e6b260016d427417d8be7b9f626b4f])\n[#2737 state:fixed-in-qa] Attach to controller\nview, not window. Windows don't rotate. \nhttps://github.com/appcelerator/titanium_mobile/commit/1a46446150e6...
Added the following code to the KS file options_dialog.js and\ntested on iPhone Simulator (4.2) and iPhone 4 (4.2.1)
\n\nwin.orientationModes = [\n Titanium.UI.PORTRAIT,\n Titanium.UI.LANDSCAPE_LEFT,\n Titanium.UI.LANDSCAPE_RIGHT,\n Titanium.UI.UPSIDE_PORTRAIT\n];
\n
\nOption Dialog will not allow screen to rotate while it's\nshowing. Don't know if this is the correct behavior, but checked on\nanother app (twitter app) and it works the same way: if the option\ndialog is showing, screen will not rotate. I'm assuming this is the\nexpected behavior.
\nTi SDK 1.6 (Jan 25 2011 17:39 r1ead074f)