[UI] Fixes #481 : removed gap and moved cards up so scrollbar doesn't hide part of the hand cards

This commit is contained in:
magenoxx 2014-08-11 15:24:03 +04:00
parent 5f040b218a
commit 26d763611a
2 changed files with 4 additions and 2 deletions

View file

@ -17,6 +17,7 @@ public class HandPanel extends JPanel {
private static final int CARD_WIDTH = 75;
private static final double ASPECT_RATIO = 3.5 / 2.5;
private static final int HAND_MIN_CARDS_OFFSET_Y = -10;
private boolean smallMode = false;
private Dimension handCardDimensionBig;
@ -31,6 +32,7 @@ public class HandPanel extends JPanel {
public void initComponents() {
hand = new mage.client.cards.Cards(true);
hand.setCardDimension(getHandCardDimension());
hand.setMinOffsetY(HAND_MIN_CARDS_OFFSET_Y);
jPanel = new JPanel();
jScrollPane1 = new JScrollPane(jPanel);