From 5e3b1b25e46a7ad5175097ab20bcea9284eae09f Mon Sep 17 00:00:00 2001 From: Doublestrike Date: Mon, 21 May 2012 11:36:29 +0000 Subject: [PATCH] Fixed overlay resizing to correspond with window resize. --- src/main/java/forge/gui/framework/SResizingUtil.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/forge/gui/framework/SResizingUtil.java b/src/main/java/forge/gui/framework/SResizingUtil.java index 50c5eb9074c..e7262465ab5 100644 --- a/src/main/java/forge/gui/framework/SResizingUtil.java +++ b/src/main/java/forge/gui/framework/SResizingUtil.java @@ -14,6 +14,7 @@ import java.util.List; import javax.swing.JPanel; +import forge.gui.toolbox.FOverlay; import forge.view.FView; /** @@ -90,6 +91,7 @@ public final class SResizingUtil { final JPanel pnlContent = FView.SINGLETON_INSTANCE.getPnlContent(); final JPanel pnlInsets = FView.SINGLETON_INSTANCE.getPnlInsets(); + FOverlay.SINGLETON_INSTANCE.getPanel().setBounds(FView.SINGLETON_INSTANCE.getFrame().getContentPane().getBounds()); pnlInsets.setBounds(FView.SINGLETON_INSTANCE.getFrame().getContentPane().getBounds()); pnlInsets.validate();