[TIMOB-1712] iOS - createLabel does not respect "bottom"
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2011-04-15T03:00:15.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 |
Components | iOS |
Labels | defect, ios, label, layout |
Reporter | Thomas Huelbert |
Assignee | Blain Hamon |
Created | 2011-04-15T03:00:14.000+0000 |
Updated | 2017-03-02T19:05:03.000+0000 |
Description
var win = Ti.UI.currentWindow;
var minLabel = Ti.UI.createLabel({
bottom: 10,
text : 'should be at 10 from the bottom'
}); win.add(minLabel);
results: will crate a label positioned in the middle of screen
Don't forget to set a height. The label, given no constraints otherwise, takes up the entire height of the parent view (save for the 10 on the bottom) and the text within the view is centered. Invalid.
Closing as invalid.