[TIMOB-6399] Android: orientation - v8/rhino - Some orientation modes are not functioning correctly
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-02-10T00:22:46.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Sprint 2012-01, Release 2.0.0, Release 1.8.1 |
Components | Android |
Labels | parity, qe-and112911nr |
Reporter | Eric Merriman |
Assignee | Hieu Pham |
Created | 2011-11-30T17:33:01.000+0000 |
Updated | 2012-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
Also occurs on the nook with both v8 and Rhino and SDK 1.8.0.1.v20111203093857
Also seeing the same behavior with Nexus S (2.3.4) and Droid (2.3.4) with Rhino/V8 1.8.0.1.v20111216124633
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)
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)