v0.3.4: even further layout improvements to wndItem

This commit is contained in:
Evan Debenham 2016-01-25 22:14:17 -05:00 committed by Evan Debenham
parent 560070fcd0
commit 36c396359d
2 changed files with 3 additions and 3 deletions

View File

@ -110,7 +110,7 @@ public class RedButton extends Button {
}
public float reqWidth() {
return text.width() + 2.5f;
return text.width() + 2f;
}
public float reqHeight() {

View File

@ -78,7 +78,7 @@ public class WndItem extends Window {
btn.setSize( Math.max( BUTTON_WIDTH, btn.reqWidth() ), BUTTON_HEIGHT );
if (x + btn.width() > width) {
x = 0;
y += BUTTON_HEIGHT + GAP;
y += BUTTON_HEIGHT + 1;
}
btn.setPos( x, y );
add( btn );
@ -87,7 +87,7 @@ public class WndItem extends Window {
btn.textColor( TITLE_COLOR );
}
x += btn.width() + GAP;
x += btn.width() + 1;
}
}