{ "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

{html}", "attachment": [ { "id": "18202", "filename": "optiondialog.png", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:28:08.000+0000", "size": 132549, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS - OptionDialog is broken on landscape mode", "creator": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "129293", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

For those who need it, Roger has posted a possible workaround\nfor this \nhere

{html}", "updateAuthor": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:28:08.000+0000", "updated": "2011-04-15T03:28:08.000+0000" }, { "id": "129294", "author": { "name": "damienelmes", "key": "damienelmes", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

hal: great, thanks for that

{html}", "updateAuthor": { "name": "damienelmes", "key": "damienelmes", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:28:09.000+0000", "updated": "2011-04-15T03:28:09.000+0000" }, { "id": "129295", "author": { "name": "damienelmes", "key": "damienelmes", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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

{html}", "updateAuthor": { "name": "damienelmes", "key": "damienelmes", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:28:09.000+0000", "updated": "2011-04-15T03:28:09.000+0000" }, { "id": "129296", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(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...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:28:10.000+0000", "updated": "2011-04-15T03:28:10.000+0000" }, { "id": "129297", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

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
\n

Option 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.

\n

Ti SDK 1.6 (Jan 25 2011 17:39 r1ead074f)

{html}", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:28:10.000+0000", "updated": "2011-04-15T03:28:10.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }