Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13151] Blackberry : Orientation modes not working with build 3.1.0.v20130320125153

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-04-09T22:38:01.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsBlackBerry
Labelssdk-bb
ReporterLokesh Choudhary
AssigneeJosh Roesslein
Created2013-03-21T18:52:36.000+0000
Updated2014-06-19T12:44:25.000+0000

Description

Note:This is a regression it works in build 3.1.0.v20130305173300 Description: 1.Use the code snippet below & build/run the app for BB simulator/device

var win = Ti.UI.createWindow({
	backgroundColor: 'green'});
	
	win.orientationModes = [
		Titanium.UI.PORTRAIT,
		Titanium.UI.UPSIDE_PORTRAIT,
		Titanium.UI.LANDSCAPE_LEFT,
		Titanium.UI.LANDSCAPE_RIGHT,
		Titanium.UI.FACE_UP,
		Titanium.UI.FACE_DOWN
	]; 
	
var lbl = Ti.UI.createLabel({
	text:'Orientation modes',
	color:'white',
	font:{fontSize:15}
});
	
win.add(lbl);
win.open();
2.Change the orientation of the device Actual Results: 1.Changing the orientation of the device does not change the apps orientation it stays at portrait Expected result: 1.The app should change the orientation

Comments

  1. Lokesh Choudhary 2013-03-21

    After adding the auto property :
       <blackberry>
              <orientation>auto</orientation>
       </blackberry>
       
    to the tiapp.xml allows the orientation change. Verified it.
  2. Lokesh Choudhary 2013-03-21

    If the property was added then this is not a regression. But, this issue definitely need more discussion
  3. Lokesh Choudhary 2013-04-10

    Verified the fix. Adding the property to the tiapp.xml fixes the orientation issue. Thus closing. Environment: Ti Studio : 3.1.0.201304051530 Ti BB SDK : 3.2.0.v20130409153013 Mac OSX : 10.8.2 win 7 Win 8 BB simulator : 10.0.10.261 Z10 device running 10.0.10.88

JSON Source