Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6448] Nook: Orientation - v8/Rhino - Nook UI only displays landscape right when both landscape orientations are allowed by the app

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2011-12-04T12:16:33.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sn/a
ComponentsAndroid
Labelsbranch-v8
ReporterEric Merriman
AssigneeMarshall Culpepper
Created2011-12-03T14:36:32.000+0000
Updated2014-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

Comments

  1. Opie Cyrus 2011-12-04

    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.

JSON Source