v0.2.3: improved IconTitle's handling of multiple text lines.
This commit is contained in:
parent
353dc49fa4
commit
ac7975d9f3
|
@ -73,7 +73,7 @@ public class IconTitle extends Component {
|
||||||
tfLabel.measure();
|
tfLabel.measure();
|
||||||
tfLabel.y = PixelScene.align( PixelScene.uiCamera,
|
tfLabel.y = PixelScene.align( PixelScene.uiCamera,
|
||||||
imIcon.height > tfLabel.height() ?
|
imIcon.height > tfLabel.height() ?
|
||||||
(imIcon.height() - tfLabel.baseLine()) / 2 :
|
1+ (imIcon.height() - tfLabel.height()) / 2 :
|
||||||
imIcon.y );
|
imIcon.y );
|
||||||
|
|
||||||
height = Math.max( imIcon.y + imIcon.height(), tfLabel.y + tfLabel.height() );
|
height = Math.max( imIcon.y + imIcon.height(), tfLabel.y + tfLabel.height() );
|
||||||
|
|
Loading…
Reference in New Issue
Block a user