Fix issue with view button alignment

Tweak height of player panels in players drop down
This commit is contained in:
drdev
2014-05-24 02:12:36 +00:00
parent 712569cffe
commit da34644021
2 changed files with 3 additions and 3 deletions

View File

@@ -279,8 +279,8 @@ public abstract class ItemManager<T extends InventoryItem> extends FContainer im
float fieldHeight = mainSearchFilter.getMainComponent().getHeight();
helper.include(btnFilters, btnFilters.getAutoSizeBounds().width * 1.2f, fieldHeight);
float viewButtonWidth = fieldHeight;
float viewButtonCount = views.size() + Utils.scaleX(1);
helper.fillLine(lblCaption, fieldHeight, (viewButtonWidth + helper.getGapX()) * viewButtonCount - viewButtonCount + 1); //leave room for view buttons
float viewButtonCount = views.size() + 1;
helper.fillLine(lblCaption, fieldHeight, (viewButtonWidth + helper.getGapX()) * viewButtonCount - helper.getGapX() + Utils.scaleX(1)); //leave room for view buttons
for (ItemView<T> view : views) {
helper.include(view.getButton(), viewButtonWidth, fieldHeight);
helper.offset(Utils.scaleX(-1), 0);

View File

@@ -49,7 +49,7 @@ public class VPlayers extends FDropDown {
private static class PlayerInfoPanel extends FContainer {
private static final FSkinFont FONT = FSkinFont.get(12);
private static final float PADDING = Utils.scaleMin(5);
private static final float HEIGHT = 2 * (VAvatar.HEIGHT + PADDING);
private static final float HEIGHT = Utils.AVG_FINGER_HEIGHT * 1.8f;
private final Player player;
private PlayerInfoPanel(Player player0) {