Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6399] Android: orientation - v8/rhino - Some orientation modes are not functioning correctly

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-02-10T00:22:46.000+0000
Affected Version/sn/a
Fix Version/sSprint 2012-01, Release 2.0.0, Release 1.8.1
ComponentsAndroid
Labelsparity, qe-and112911nr
ReporterEric Merriman
AssigneeHieu Pham
Created2011-11-30T17:33:01.000+0000
Updated2012-03-03T23:17:42.000+0000

Description

Description: While testing using our orientation test plan, I noted that two tests were failing to limit the available orientations. These were specifying LANDSCAPE_RIGHT and UPSIDE_PORTRAIT. Landscape left and portrait worked as expected, limiting the UI orientation to those specified. Try the following code with with either of the listed orientations:
var win = Ti.UI.createWindow({backgroundColor:'white'});

var img = Ti.UI.createImageView({image:'KS_nav_ui.png'});

win.add(img);

win.orientationModes=[Ti.UI.UPSIDE_PORTRAIT];

win.open();
Steps to reproduce: 1) Use the sample code above 2) Install on android device 3) Rotate the device to unsupported orientations Result: UI rotates to all orientations Expected: UI remains in specified orientation Note: Seems to also occur with 1.7.5 GA

Comments

  1. Eric Merriman 2011-12-03

    Also occurs on the nook with both v8 and Rhino and SDK 1.8.0.1.v20111203093857
  2. Natalie Huynh 2011-12-16

    Also seeing the same behavior with Nexus S (2.3.4) and Droid (2.3.4) with Rhino/V8 1.8.0.1.v20111216124633
  3. Dustin Hyde 2011-12-16

    Bug also valid in: SDK: 1.8.0.1.v20111216124633 Android Runtimes: V8/Rhino Devices: Xoom (3.2.1), Galaxy Tab 10.1 (3.1)
  4. Wilson Luu 2012-01-17

    Closing bug. Verified fix on: SDK build: 1.9.0.v20120117144634 Runtime: V8, Rhino Titanium Studio, build: 1.0.8.201201131907 OS: Mac OS X Lion (10.7.1) Device: Droid 3 (2.3.4)

JSON Source