Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2737] iOS - OptionDialog is broken on landscape mode

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:59:56.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M06
ComponentsiOS
Labelsdialog, ios, optiondialog, options, orientationmodes, orientations, release-1.6.0
ReporterPedro Enrique
AssigneeBlain Hamon
Created2011-04-15T03:28:08.000+0000
Updated2011-04-17T01:59:56.000+0000

Description

The Option Dialog appears sideways on landscape mode. Image attached.
Tested with ticket http://developer.appcelerator.com/helpdesk/view/63531">http://developer.appcelerator.com/helpdesk/view/63531
And in KS:
In the KitchenSink, added orientation modes to options_dialog.js

Attachments

FileDateSize
optiondialog.png2011-04-15T03:28:08.000+0000132549

Comments

  1. hal 2011-04-15

    For those who need it, Roger has posted a possible workaround for this http://developer.appcelerator.com/question/21021/optiondialog-orientation#173771"> here

  2. Damien Elmes 2011-04-15

    hal: great, thanks for that

  3. Damien Elmes 2011-04-15

    ah, looking at it closer I'd have to check which orientation the current window is, and pass in a landscape argument every time I use an option dialog which is rather inconvenient. I think I'll wait for a proper fix instead

  4. Jeff Haynie 2011-04-15

    (from [1a46446150e6b260016d427417d8be7b9f626b4f]) [#2737 state:fixed-in-qa] Attach to controller view, not window. Windows don't rotate. https://github.com/appcelerator/titanium_mobile/commit/1a46446150e6b260016d427417d8be7b9f626b4f"> https://github.com/appcelerator/titanium_mobile/commit/1a46446150e6...

  5. Pedro Enrique 2011-04-15

    Added the following code to the KS file options_dialog.js and tested on iPhone Simulator (4.2) and iPhone 4 (4.2.1)

       win.orientationModes = [
           Titanium.UI.PORTRAIT,
           Titanium.UI.LANDSCAPE_LEFT,
           Titanium.UI.LANDSCAPE_RIGHT,
           Titanium.UI.UPSIDE_PORTRAIT
       ];
       

    Option Dialog will not allow screen to rotate while it's showing. Don't know if this is the correct behavior, but checked on another app (twitter app) and it works the same way: if the option dialog is showing, screen will not rotate. I'm assuming this is the expected behavior.

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

JSON Source