From c99f02bf66d6896a1aff4b25e2353c08ef85ee6d Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 23 Feb 2015 01:43:29 -0500 Subject: [PATCH] v0.2.4: fixed a bug from 1.7.5 source with icon titles (should not assume they are on the top of the window) --- .../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 4695806c4..496ab3225 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/windows/IconTitle.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/windows/IconTitle.java @@ -90,7 +90,7 @@ public class IconTitle extends Component { health.setRect( tfLabel.x, Math.max( tfLabel.y + tfLabel.height(), imIcon.y + imIcon.height() - health.height() ), tfLabel.maxWidth, 0 ); height = health.bottom(); } else { - height = Math.max( imIcon.y + imIcon.height(), tfLabel.y + tfLabel.height() ); + height = Math.max( imIcon.height(), tfLabel.height() ); } }