From 0af597233cb9ac363916c82567453ad5c3e2a0a0 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 28 Jan 2016 14:25:30 -0500 Subject: [PATCH] v0.3.4: fixed a wnditem layout bug --- .../shatteredpixel/shatteredpixeldungeon/windows/WndItem.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/windows/WndItem.java b/src/com/shatteredpixel/shatteredpixeldungeon/windows/WndItem.java index 81a26516e..67941499f 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/windows/WndItem.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/windows/WndItem.java @@ -108,6 +108,7 @@ public class WndItem extends Window { if (line == null || line.size() == 0 || extraWidth == 0) return; if (line.size() == 1){ line.get(0).setSize(line.get(0).width()+extraWidth, BUTTON_HEIGHT); + line.get(0).setPos( 0 , y ); return; } ArrayList lineByWidths = new ArrayList<>(line);