Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1712] iOS - createLabel does not respect "bottom"

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2011-04-15T03:00:15.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsiOS
Labelsdefect, ios, label, layout
ReporterThomas Huelbert
AssigneeBlain Hamon
Created2011-04-15T03:00:14.000+0000
Updated2017-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

Comments

  1. Blain Hamon 2011-04-15

    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.

  2. Lee Morris 2017-03-02

    Closing as invalid.

JSON Source