titanium-sdk
titanium-sdk copied to clipboard
iOS: Label height incorrect when using minimumFontSize
When setting minimumFontSize the label won't shrink to the actual label height. It will stay at the "max" fontSize height:

var win = Ti.UI.createWindow({backgroundColor: 'white'});
var lbl = Ti.UI.createLabel({
width: Ti.UI.FILL,
height:Ti.UI.SIZE,
text:"test test test test",
minimumFontSize: 20,
font:{
fontSize: 400
},
backgroundColor:"red"
});
win.add(lbl);
win.open();
The red background should just be the height of the text. The minimumFontSize is set here
Tested with Titanium SDK 10.1.0.GA
There is an open ticket for this issue here... https://jira.appcelerator.org/browse/TIMOB-24864
https://github.com/mbender74/ti.labelextension-ios
with this module ->