mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
Prevent long deck name causing horizontal scroll arrow to appear
This commit is contained in:
@@ -267,8 +267,8 @@ public enum VSubmenuConstructed implements IVSubmenu<CSubmenuConstructed> {
|
|||||||
playerNameField.setFont(FSkin.getFont(14));
|
playerNameField.setFont(FSkin.getFont(14));
|
||||||
playerNameField.addActionListener(nameListener);
|
playerNameField.addActionListener(nameListener);
|
||||||
playerNameField.addFocusListener(nameFocusListener);
|
playerNameField.addFocusListener(nameFocusListener);
|
||||||
playerPanel.add(newLabel("Name:"), "height 30px, gaptop 5px, gapx rel");
|
playerPanel.add(newLabel("Name:"), "w 40px, h 30px, gaptop 5px");
|
||||||
playerPanel.add(playerNameField, "height 30px, pushx, growx");
|
playerPanel.add(playerNameField, "h 30px, pushx, growx");
|
||||||
playerNameBtnList.add(playerNameField);
|
playerNameBtnList.add(playerNameField);
|
||||||
|
|
||||||
// Name randomiser
|
// Name randomiser
|
||||||
@@ -323,8 +323,8 @@ public enum VSubmenuConstructed implements IVSubmenu<CSubmenuConstructed> {
|
|||||||
avatarList.get(deckSelectorBtns.indexOf(deckBtn)).requestFocusInWindow();
|
avatarList.get(deckSelectorBtns.indexOf(deckBtn)).requestFocusInWindow();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
playerPanel.add(newLabel("Deck:"), "height 30px, gapx rel");
|
playerPanel.add(newLabel("Deck:"), "w 40px, h 30px");
|
||||||
playerPanel.add(deckBtn, "height 30px, growx, pushx, spanx 4");
|
playerPanel.add(deckBtn, "pushx, growx, wmax 100%-157px, h 30px, spanx 4");
|
||||||
deckSelectorBtns.add(deckBtn);
|
deckSelectorBtns.add(deckBtn);
|
||||||
|
|
||||||
playerPanelList.add(playerPanel);
|
playerPanelList.add(playerPanel);
|
||||||
|
|||||||
Reference in New Issue
Block a user