Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13487] BlackBerry : Drawing of controls is delayed when orientation change from portrait to landscape & viceversa

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2013-06-18T01:38:14.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsBlackBerry
Labelssdk-bb
ReporterLokesh Choudhary
AssigneePedro Enrique
Created2013-04-08T23:35:41.000+0000
Updated2017-03-13T18:29:12.000+0000

Description

Description: 1. Create a default app for BB 2. Replace the app.js code with the one below:
var title = Ti.UI.createLabel({
	text:'Image View',
	font:{
            fontSize : 16,
            fontFamily : 'Helvetica Neue'
        },
    top:15,
});

var but1 = Ti.UI.createButton({
	title:'Image View with BG img',
	top:70,
	left:Ti.UI.SIZE
});
var but2 = Ti.UI.createButton({
	title:'Image view without BG img',
	top:130,
	left:Ti.UI.SIZE
});

var win = Ti.UI.createWindow({
	backgroundColor:'brown',
	
});

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
];

win.add(title);
win.add(but1);
win.add(but2);
win.open();
3. Make sure you add the code below to tiapp.xml
<blackberry>
        <orientation>auto</orientation>
</blackberry>
4. Build & run on BB device 5. Start the app 6. Change the orientation from portrait to landscape & viceversa Actual Result: 1. Notice that the label & buttons have a delay when orientation change 2. The window changes the orientation first & then the controls appear to be rendered from the side to the right position 3. The delay is small but can be seen. 4. Also, the BB native apps on the device do not have this behavior

Comments

  1. Lee Morris 2017-03-13

    Closing this ticket as the issue will not fix.

JSON Source