Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

BUG: Titanium.UI.Label incorrectly reports width in size.height property

See the following code:

var label = Ti.UI.createLabel({
    text:'some text',
    font:{fontSize:14},
    height:20,
    width:300,
    left:10
});
Ti.API.info("label.size.height = " + label.size.height);
Ti.API.info("label.size.width = " + label.size.width);

Output is:
[INFO] label.size.height = 300
[INFO] label.size.width = 300

I have created a ticket for this:
https://appcelerator.lighthouseapp.com/projects/32238-titanium-mobile/tickets/562-titaniumuilabel-incorrectly-reports-width-in-sizeheight-property

— asked March 16th 2010 by Mark Burggraf
  • bug
  • height
  • label
  • size
  • width
0 Comments

2 Answers

  • The issue is resolved as of the upcoming 1.1.1 release. See ticket.

    — answered March 24th 2010 by Don Thorp
    permalink
    0 Comments
  • Thanks, Don. We've picked up the latest build from github and are already using it. The size properties are very, very handy now that they both work.

    — answered March 24th 2010 by Mark Burggraf
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.