diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndHero.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndHero.java index 92a0e1d7a..66d0bfa4e 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndHero.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndHero.java @@ -279,10 +279,12 @@ public class WndHero extends WndTabbed { protected void layout() { super.layout(); icon.y = this.y; + txt.maxWidth((int)(width - icon.width())); txt.setPos( icon.width + GAP, this.y + (icon.height - txt.height()) / 2 ); + PixelScene.align(txt); } protected boolean onClick ( float x, float y ) {