Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-562] Titanium.UI.Label incorrectly reports width in size.height property

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:53:31.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.1.1
ComponentsiOS
Labelsdefect, ios, iphone
ReporterBurggraf
AssigneeReggie Seagraves
Created2011-04-15T02:32:01.000+0000
Updated2011-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

Comments

  1. Don Thorp 2011-04-15

    Which platform(s) have you seen this on?

  2. Burggraf 2011-04-15

    I'm running OSX 10.6.2, Titanium Mobile 1.0, compiling for the iPhone 3.1 SDK (testing in the simulator)

  3. Jeff Haynie 2011-04-15

    (from [83dc9eb707a0050da4f7e1fa1ede9101d3a8a356]) Closes #603 , Closes #574, Closes #562 http://github.com/appcelerator/titanium_mobile/commit/83dc9eb707a0050da4f7e1fa1ede9101d3a8a356"> http://github.com/appcelerator/titanium_mobile/commit/83dc9eb707a00...

JSON Source