Fix padding for settings screen

This commit is contained in:
drdev
2014-04-29 00:58:29 +00:00
parent 44711aca4e
commit eb6e6d9b80

View File

@@ -282,6 +282,12 @@ public class SettingsScreen extends FScreen {
@Override @Override
public void drawValue(Graphics g, Setting value, FSkinFont font, FSkinColor color, boolean pressed, float x, float y, float w, float h) { public void drawValue(Graphics g, Setting value, FSkinFont font, FSkinColor color, boolean pressed, float x, float y, float w, float h) {
float offset = w * INSETS_FACTOR - FList.PADDING; //increase padding for settings items
x += offset;
y += offset;
w -= 2 * offset;
h -= 2 * offset;
float totalHeight = h; float totalHeight = h;
h = font.getFont().getMultiLineBounds(value.label).height + 5; h = font.getFont().getMultiLineBounds(value.label).height + 5;