[TIMOB-2737] iOS - OptionDialog is broken on landscape mode
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:59:56.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M06 |
Components | iOS |
Labels | dialog, ios, optiondialog, options, orientationmodes, orientations, release-1.6.0 |
Reporter | Pedro Enrique |
Assignee | Blain Hamon |
Created | 2011-04-15T03:28:08.000+0000 |
Updated | 2011-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
File | Date | Size |
---|---|---|
optiondialog.png | 2011-04-15T03:28:08.000+0000 | 132549 |
For those who need it, Roger has posted a possible workaround for this http://developer.appcelerator.com/question/21021/optiondialog-orientation#173771"> here
hal: great, thanks for that
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
(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...
Added the following code to the KS file options_dialog.js and tested on iPhone Simulator (4.2) and iPhone 4 (4.2.1)
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)