From 9ee20966bb96d5e2f433918e3db659ca2c1a4311 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 16 Nov 2017 12:31:04 -0500 Subject: [PATCH] v0.6.2d: fixed layout issues with wndInfoMob --- .../shatteredpixeldungeon/windows/WndInfoMob.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndInfoMob.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndInfoMob.java index abfe693a0..ef7cb199a 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndInfoMob.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndInfoMob.java @@ -68,14 +68,14 @@ public class WndInfoMob extends WndTitledMessage { protected void layout() { image.x = 0; - image.y = Math.max( 0, name.height() + GAP + health.height() - image.height ); + image.y = Math.max( 0, name.height() + health.height() - image.height ); name.x = image.width + GAP; - name.y = image.height - health.height() - GAP - name.baseLine(); + name.y = Math.max( 0, image.height - health.height() - name.height()); float w = width - image.width - GAP; - health.setRect(image.width + GAP, image.height - health.height(), w, health.height()); + health.setRect(image.width + GAP, name.y + name.height(), w, health.height()); buffs.setPos( name.x + name.width() + GAP-1,