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
2 Answers
-
The issue is resolved as of the upcoming 1.1.1 release. See ticket.
-
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.