v0.2.3: improved IconTitle's handling of multiple text lines.

This commit is contained in:
Evan Debenham 2014-12-20 02:46:59 -05:00
parent 353dc49fa4
commit ac7975d9f3

View File

@ -73,7 +73,7 @@ public class IconTitle extends Component {
tfLabel.measure();
tfLabel.y = PixelScene.align( PixelScene.uiCamera,
imIcon.height > tfLabel.height() ?
(imIcon.height() - tfLabel.baseLine()) / 2 :
1+ (imIcon.height() - tfLabel.height()) / 2 :
imIcon.y );
height = Math.max( imIcon.y + imIcon.height(), tfLabel.y + tfLabel.height() );