From 0db40dbf8706b7f12c50f29428aa9b95e6f2d84f Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 3 Jan 2015 17:50:24 -0500 Subject: [PATCH] v0.2.3: tweaks to IconTitle --- .../shatteredpixeldungeon/windows/IconTitle.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/windows/IconTitle.java b/src/com/shatteredpixel/shatteredpixeldungeon/windows/IconTitle.java index 837b19835..c7a38180f 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/windows/IconTitle.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/windows/IconTitle.java @@ -65,18 +65,18 @@ public class IconTitle extends Component { @Override protected void layout() { - imIcon.x = 0; - imIcon.y = 0; + imIcon.x = this.x; + imIcon.y = this.y; tfLabel.x = PixelScene.align( PixelScene.uiCamera, imIcon.x + imIcon.width() + GAP ); tfLabel.maxWidth = (int)(width - tfLabel.x); tfLabel.measure(); tfLabel.y = PixelScene.align( PixelScene.uiCamera, imIcon.height > tfLabel.height() ? - 1+ (imIcon.height() - tfLabel.height()) / 2 : + imIcon.y + 1 + (imIcon.height() - tfLabel.height()) / 2 : imIcon.y ); - height = Math.max( imIcon.y + imIcon.height(), tfLabel.y + tfLabel.height() ); + height = Math.max( imIcon.height(), tfLabel.height() ); } public void icon( Image icon ) {