[TIMOB-12505] BlackBerry: Label autosizing not working
GitHub Issue | n/a |
---|---|
Type | Sub-task |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-02-13T17:00:47.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.1.0, 2013 Sprint 04 BB, 2013 Sprint 04 |
Components | BlackBerry |
Labels | sdk-bb |
Reporter | Lokesh Choudhary |
Assignee | Russell McMahon |
Created | 2013-01-31T00:02:10.000+0000 |
Updated | 2013-02-13T18:25:31.000+0000 |
Description
Description:
1.Create a default app in BB.
2.replace the code in app.js with this code:
var win1 = Titanium.UI.createWindow({
backgroundColor:'#fff'
});
var label1 = Titanium.UI.createLabel({
color:'#000',
text:'I am Window 1',
font:{fontSize:20},
textAlign:'center',
width:'auto'
});
win1.add(label1);
win1.open();
3.Run the app on simulator or device.
Actual result:
1.We do not see any label.
Expected Result:
2.We should be able to see the label.
I believe this applies to all control.
dup of TIMOB-12522
Verified & the autosizing works.Ran the code without the width,height etc & the label autosized in the center Environment: Ti Studio : 3.1.0.201302101654 Ti BB SDK : 3.1.0.v20130212113336 Mac OSX : 10.8.2 win 7 64 bit Win 8 BB simulator : 10.0.9.386
Reopening the issue as the autosizing is not working on device.The controls are not displayed on device but seen on simulator Environment: Ti Studio : 3.1.0.201302101654 Ti BB SDK : 3.1.0.v20130212145409 Mac OSX : 10.8.2 win 7 64 bit Win 8 Dev alpha 10 device
Autosizing is not working on device.The controls are not displayed on device but seen on simulator Environment: Ti Studio : 3.1.0.201302101654 Ti BB SDK : 3.1.0.v20130212145409 Mac OSX : 10.8.2 win 7 64 bit Win 8 Dev alpha 10 device
Verified the fix & the label is seen on the BB device Environment: Ti Studio : 3.1.0.201302101654 Ti BB SDK : 3.1.0.v20130213092222 Mac OSX : 10.8.2 win 7 64 bit Win 8 BB simulator : 10.0.9.386 Dev alpha 10 device