mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Prevent horizontal scrollbar appearing in zone windows.
This commit is contained in:
@@ -23,6 +23,9 @@ public class FScrollPane extends SkinnedScrollPane {
|
|||||||
public FScrollPane(boolean showBorder0) {
|
public FScrollPane(boolean showBorder0) {
|
||||||
this(null, showBorder0);
|
this(null, showBorder0);
|
||||||
}
|
}
|
||||||
|
public FScrollPane(boolean showBorder0, final int vertical0, final int horizontal0) {
|
||||||
|
this(null, showBorder0, false, vertical0, horizontal0);
|
||||||
|
}
|
||||||
public FScrollPane(final Component c0, boolean showBorder0) {
|
public FScrollPane(final Component c0, boolean showBorder0) {
|
||||||
this(c0, showBorder0, false, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
|
this(c0, showBorder0, false, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,6 +46,8 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import javax.swing.ScrollPaneConstants;
|
||||||
|
|
||||||
|
|
||||||
public class FloatingCardArea extends CardArea {
|
public class FloatingCardArea extends CardArea {
|
||||||
private static final long serialVersionUID = 1927906492186378596L;
|
private static final long serialVersionUID = 1927906492186378596L;
|
||||||
@@ -131,7 +133,7 @@ public class FloatingCardArea extends CardArea {
|
|||||||
};
|
};
|
||||||
|
|
||||||
private FloatingCardArea(PlayerView player0, ZoneType zone0) {
|
private FloatingCardArea(PlayerView player0, ZoneType zone0) {
|
||||||
super(new FScrollPane(false));
|
super(new FScrollPane(false, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER));
|
||||||
window.add(getScrollPane(), "grow, push");
|
window.add(getScrollPane(), "grow, push");
|
||||||
getScrollPane().setViewportView(this);
|
getScrollPane().setViewportView(this);
|
||||||
setOpaque(false);
|
setOpaque(false);
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ Popup windows for zones (Hand, Library, Graveyard, Exile, Flashback) will now re
|
|||||||
Clicking the zone icon under a player's avatar will now hide the zone window if its currently open.
|
Clicking the zone icon under a player's avatar will now hide the zone window if its currently open.
|
||||||
After the last card is removed from a zone window, that window will now automatically be hidden. An example of this would be casting the last card in the Flashback zone.
|
After the last card is removed from a zone window, that window will now automatically be hidden. An example of this would be casting the last card in the Flashback zone.
|
||||||
Default size of zone windows has been slightly reduced.
|
Default size of zone windows has been slightly reduced.
|
||||||
|
Prevent horizontal scrollbar appearing in zone windows.
|
||||||
|
|
||||||
---------
|
---------
|
||||||
New Cards
|
New Cards
|
||||||
|
|||||||
Reference in New Issue
Block a user