[TIMOB-13151] Blackberry : Orientation modes not working with build 3.1.0.v20130320125153
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-04-09T22:38:01.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | BlackBerry |
Labels | sdk-bb |
Reporter | Lokesh Choudhary |
Assignee | Josh Roesslein |
Created | 2013-03-21T18:52:36.000+0000 |
Updated | 2014-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
After adding the auto property :
to the tiapp.xml allows the orientation change. Verified it.
If the property was added then this is not a regression. But, this issue definitely need more discussion
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