[TIMOB-13487] BlackBerry : Drawing of controls is delayed when orientation change from portrait to landscape & viceversa
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2013-06-18T01:38:14.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | BlackBerry |
Labels | sdk-bb |
Reporter | Lokesh Choudhary |
Assignee | Pedro Enrique |
Created | 2013-04-08T23:35:41.000+0000 |
Updated | 2017-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
Closing this ticket as the issue will not fix.