Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14190] BlackBerry: Window does not resize itself on orientation change from portrait to landscape

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-06-13T23:53:01.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 12 JS, 2013 Sprint 12, Release 3.2.0
ComponentsBlackBerry
Labelsqe-3.1.1, qe-testadded, regression, sdk-bb
ReporterLokesh Choudhary
AssigneePedro Enrique
Created2013-06-12T17:47:28.000+0000
Updated2014-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

FileDateSize
20130612_103906.jpg2013-06-12T17:47:28.000+00002463186
20130612_103921.jpg2013-06-12T17:47:28.000+00001996720

Comments

  1. Pedro Enrique 2013-06-13

    Backport PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/104
  2. Lokesh Choudhary 2013-06-14

    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

JSON Source