A label with a height of Ti.UI.SIZE and fixed width specified will grow to the size of the content.
A label with a height of Ti.UI.SIZE and fixed width specified doesn't grow to the height of the content.
Titanium.UI.setBackgroundColor('#000');
var win1 = Titanium.UI.createWindow({
title:'My Window',
backgroundColor:'pink'
});
var view = Ti.UI.createView(
{
top: 20,
left: 10,
right: 10,
height: Ti.UI.SIZE,
backgroundColor: "white",
borderSize: 1,
borderRadius: 6
});
win1.add(view);
var label1 = Ti.UI.createLabel(
{
left: 10,
right: 10,
top: 10,
height: Ti.UI.SIZE,
text: "Address",
color: "black"
});
view.add(label1);
var label2 = Ti.UI.createLabel(
{
right: 10,
width: 150,
top: 28,
bottom: 10,
height: Ti.UI.SIZE,
color: "black",
text: "3422 North 2322 West, Amazing City AK 93222, United States of America, The Sol System, The Milky Way"
});
view.add(label2);
win1.open();
This was fixed by TIMOB-8713 and already on master (2.1.0) release. Reopen if it needs to be back ported to 2.0.2.
Please back port in 2.0.x branch. Thanks.
Duplicate of TIMOB-8713, as stated by Max.
TIMOB-8713 was marked for 2.0.2 back port.
Fix Back ported to 2_0_X by [PR2305](https://github.com/appcelerator/titanium_mobile/pull/2305) and the fix should be available on 2_0_X branch from commit [a43004b8e](https://github.com/appcelerator/titanium_mobile/commit/a43004b8eb830edfb22f8ef21f3d37ac1e6ab9f0)
Closing ticket as duplicate and links to the related ticket have been provided above.