v0.3.4: fixed a wnditem layout bug

This commit is contained in:
Evan Debenham 2016-01-28 14:25:30 -05:00 committed by Evan Debenham
parent 60a51b6c00
commit 0af597233c

View File

@ -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<RedButton> lineByWidths = new ArrayList<>(line);