Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12505] BlackBerry: Label autosizing not working

GitHub Issuen/a
TypeSub-task
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-02-13T17:00:47.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.1.0, 2013 Sprint 04 BB, 2013 Sprint 04
ComponentsBlackBerry
Labelssdk-bb
ReporterLokesh Choudhary
AssigneeRussell McMahon
Created2013-01-31T00:02:10.000+0000
Updated2013-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.

Comments

  1. Russell McMahon 2013-01-31

    I believe this applies to all control.
  2. Russell McMahon 2013-02-12

    dup of TIMOB-12522
  3. Lokesh Choudhary 2013-02-12

    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
  4. Lokesh Choudhary 2013-02-13

    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
  5. Lokesh Choudhary 2013-02-13

    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
  6. Lokesh Choudhary 2013-02-13

    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

JSON Source