mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
Fix issue with view button alignment
Tweak height of player panels in players drop down
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user