Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6128] Android: OrientationModes - Setting OrientationModes does nothing

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2011-11-16T12:13:50.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sSprint 2011-46, Release 1.8.0.1
ComponentsAndroid
Labelsbranch-v8, regression
ReporterAlan Vaghti
AssigneeOpie Cyrus
Created2011-11-08T15:08:54.000+0000
Updated2011-12-07T16:02:39.000+0000

Description

1) Create a new project and place the following in the app.js

var win = Ti.UI.createWindow({
	backgroundColor:'white'
});

var img = Ti.UI.createImageView({image:'grouch.jpg'});

win.add(img);

win.orientationModes = [
    Ti.UI.LANDSCAPE_LEFT,
    Ti.UI.LANDSCAPE_RIGHT
];

win.open();
2) Place the attached grouch.jpg in the Resources folder 3) Launch the application Expected results: Image is shown in landscape mode only Actual results: Image is shown in portrait and landscape mode. Same behavior as not defining the orientationModes. Notes: Same behavior occurs if rhino tag is put in the tiapp.xml

Attachments

FileDateSize
grouch.jpg2011-11-08T15:08:54.000+000052018

Comments

  1. Opie Cyrus 2011-11-10

    unable to reproduce on droid2 with v8 or rhino. Please confirm behavior still persists with latest branch of master.
  2. Opie Cyrus 2011-11-16

    issue still occurs on HW windows
  3. Natalie Huynh 2011-12-07

    Tested with 1.8.0.1.v20111207090257 Xoom (3.2.1) - v8 Samsung Tab 10.1 (3.1) - rhino

JSON Source