[TIMOB-562] Titanium.UI.Label incorrectly reports width in size.height property
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-04-17T01:53:31.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 1.1.1 |
| Components | iOS |
| Labels | defect, ios, iphone |
| Reporter | Burggraf |
| Assignee | Reggie Seagraves |
| Created | 2011-04-15T02:32:01.000+0000 |
| Updated | 2011-04-17T01:53:31.000+0000 |
Description
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
Which platform(s) have you seen this on?
I'm running OSX 10.6.2, Titanium Mobile 1.0, compiling for the iPhone 3.1 SDK (testing in the simulator)
(from [83dc9eb707a0050da4f7e1fa1ede9101d3a8a356]) Closes #603 , Closes #574, Closes #562 http://github.com/appcelerator/titanium_mobile/commit/83dc9eb707a0050da4f7e1fa1ede9101d3a8a356"> http://github.com/appcelerator/titanium_mobile/commit/83dc9eb707a00...