[TIMOB-6128] Android: OrientationModes - Setting OrientationModes does nothing
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-11-16T12:13:50.000+0000 |
Affected Version/s | Release 1.8.0 |
Fix Version/s | Sprint 2011-46, Release 1.8.0.1 |
Components | Android |
Labels | branch-v8, regression |
Reporter | Alan Vaghti |
Assignee | Opie Cyrus |
Created | 2011-11-08T15:08:54.000+0000 |
Updated | 2011-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
File | Date | Size |
---|---|---|
grouch.jpg | 2011-11-08T15:08:54.000+0000 | 52018 |
unable to reproduce on droid2 with v8 or rhino. Please confirm behavior still persists with latest branch of master.
issue still occurs on HW windows
Tested with 1.8.0.1.v20111207090257 Xoom (3.2.1) - v8 Samsung Tab 10.1 (3.1) - rhino