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) {
|
||||
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) {
|
||||
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.List;
|
||||
|
||||
import javax.swing.ScrollPaneConstants;
|
||||
|
||||
|
||||
public class FloatingCardArea extends CardArea {
|
||||
private static final long serialVersionUID = 1927906492186378596L;
|
||||
@@ -131,7 +133,7 @@ public class FloatingCardArea extends CardArea {
|
||||
};
|
||||
|
||||
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");
|
||||
getScrollPane().setViewportView(this);
|
||||
setOpaque(false);
|
||||
|
||||
Reference in New Issue
Block a user