Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1201] orientationModes window property ignored

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2011-04-15T02:46:30.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsiOS
Labelsiphone, orientation, window
ReporterDan Giulvezan
AssigneeReggie Seagraves
Created2011-04-15T02:46:29.000+0000
Updated2017-03-02T19:22:51.000+0000

Description

Using the orientationModes property when creating a window is ignored in SDK 1.3.2 but works okay in previous SDK versions.

Comments

  1. Dan Giulvezan 2011-04-15

    I'm surprised to see this moved to 1.5.0 when the documentation says it's already supported (http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.Window-object)">http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI..... Again, it worked fine prior to 1.3.2 when an SDK change broke it.

  2. Stephen Tramer 2011-04-15

    The following works for me:

       var win = Ti.UI.createWindow({
           backgroundColor:'white',
           orientationModes:[
           Titanium.UI.PORTRAIT,
           Titanium.UI.UPSIDE_PORTRAIT]
       });
       

    Remember, orientation modes are always passed as an array.

  3. Lee Morris 2017-03-02

    Closed as invalid.

JSON Source