mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
add a small margin around the 'how to play' panel so it doesn't hug the edges of the screen
This commit is contained in:
@@ -142,7 +142,7 @@ public enum VSubmenuDownloaders implements IVSubmenu<CSubmenuDownloaders> {
|
|||||||
|
|
||||||
p.add(c, "w 500!");
|
p.add(c, "w 500!");
|
||||||
p.add(btnClose, "w 200!, h pref+12, center, gaptop 30");
|
p.add(btnClose, "w 200!, h pref+12, center, gaptop 30");
|
||||||
overlay.add(p);
|
overlay.add(p, "gap 0 0 10% 10%");
|
||||||
SOverlayUtils.showOverlay();
|
SOverlayUtils.showOverlay();
|
||||||
|
|
||||||
SwingUtilities.invokeLater(new Runnable() {
|
SwingUtilities.invokeLater(new Runnable() {
|
||||||
@@ -180,7 +180,6 @@ public enum VSubmenuDownloaders implements IVSubmenu<CSubmenuDownloaders> {
|
|||||||
ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
|
ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
|
||||||
scr.setBorder(null);
|
scr.setBorder(null);
|
||||||
|
|
||||||
|
|
||||||
_showDialog(scr, new Runnable() {
|
_showDialog(scr, new Runnable() {
|
||||||
@Override public void run() { scr.getViewport().setViewPosition(new Point(0, 0)); }
|
@Override public void run() { scr.getViewport().setViewPosition(new Point(0, 0)); }
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user