[TIMOB-4404] iOS: UI.Label - label fills entire view space rather than auto-sizing to text
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-03-20T13:40:13.000+0000 |
Affected Version/s | Release 1.7.0 |
Fix Version/s | Release 2.0.0, Sprint 2012-06 |
Components | iOS |
Labels | parity |
Reporter | Natalie Huynh |
Assignee | Neeraj Gupta |
Created | 2011-06-14T11:15:34.000+0000 |
Updated | 2012-03-21T11:14:36.000+0000 |
Description
Actual Result:
The label is filling the entire parent view spaceExpected Result:
Should auto size to contentTest case
var win = Ti.UI.createWindow({
backgroundColor: 'white',
fullscreen: false
});
var bigNumber = 324;
var label = Ti.UI.createLabel({
backgroundColor:'green',
text: bigNumber,
textAlign: 'center'
});
win.add(label);
win.open();
Fixed as part of composite layout implementation
Tested with 2.0.0.v20120321071752 on Motorola Xoom (4.0.2) and iPhone 4 (4.3.5)