From ac7975d9f3373b8289239d7443e7b69e7039c471 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 20 Dec 2014 02:46:59 -0500 Subject: [PATCH] v0.2.3: improved IconTitle's handling of multiple text lines. --- .../shatteredpixel/shatteredpixeldungeon/windows/IconTitle.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/windows/IconTitle.java b/src/com/shatteredpixel/shatteredpixeldungeon/windows/IconTitle.java index bb8ca6c44..837b19835 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/windows/IconTitle.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/windows/IconTitle.java @@ -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() );