[TIMOB-6448] Nook: Orientation - v8/Rhino - Nook UI only displays landscape right when both landscape orientations are allowed by the app
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2011-12-04T12:16:33.000+0000 |
Affected Version/s | Release 1.8.0.1 |
Fix Version/s | n/a |
Components | Android |
Labels | branch-v8 |
Reporter | Eric Merriman |
Assignee | Marshall Culpepper |
Created | 2011-12-03T14:36:32.000+0000 |
Updated | 2014-06-19T12:43:55.000+0000 |
Description
Description:
If the user sets the window orientation modes allowed to both Ti.UI.LANDSCAPE_LEFT and Ti.UI.LANDSCAPE_RIGHT then opens the window, the UI will be displayed only in landscape right. This does not occur on other android-based devices.
Sample code:
var win = Ti.UI.createWindow({
backgroundColor:'white'
});
var img = Ti.UI.createImageView({image:'KS_nav_ui.png'});
win.add(img);
win.orientationModes = [
Ti.UI.LANDSCAPE_LEFT,
Ti.UI.LANDSCAPE_RIGHT
];
win.open();
Steps to reproduce:
1) Create a project in studio and use the sample code for app.js
2) Install on Nook
3) Launch the app
Result:
UI will be landscape right and will not rotate to landscape left
Expected:
UI will rotate to either landscape based on device orientation
Nook Color 1.3 runs Froyo (Android 2.2) and the sensor orientation modes (switching between both orientation modes) only works on 2.3 and above.