[TIMOB-14190] BlackBerry: Window does not resize itself on orientation change from portrait to landscape
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-06-13T23:53:01.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 12 JS, 2013 Sprint 12, Release 3.2.0 |
Components | BlackBerry |
Labels | qe-3.1.1, qe-testadded, regression, sdk-bb |
Reporter | Lokesh Choudhary |
Assignee | Pedro Enrique |
Created | 2013-06-12T17:47:28.000+0000 |
Updated | 2014-02-19T18:38:37.000+0000 |
Description
This is a regression.
Description:
1. Create an app for BB & replace the app.js with the code below:
var win = Ti.UI.createWindow({
backgroundColor: 'green',
layout:'vertical'
});
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 lbl1 = Ti.UI.createLabel({
text:'Orientation',
color:'white',
font:{fontSize:12}
});
win.add(lbl1);
win.open();
2. Build & run the app on BB device
3. Launch the app & change the orientation from portrait to landscape
Actual result:
1. Thought the orientation changes to landscape the window does not resize accordingly & does not fill the width
Attachments
File | Date | Size |
---|---|---|
20130612_103906.jpg | 2013-06-12T17:47:28.000+0000 | 2463186 |
20130612_103921.jpg | 2013-06-12T17:47:28.000+0000 | 1996720 |
Backport PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/104
Verified the fix & the window or view orients itself properly. Environment: Ti Studio : 3.1.1.201306112235 Ti BB SDK : 3.1.1.v20130613185544 Mac OSX : 10.8.3 Alloy : 1.1.3-cr CLI - 3.1.1-cr win 7 Win 8 Z10 BB simulator : 10.0.10.822 Z10 device running 10.0.10.88