altosui: Try to avoid resize weirdness with map preloading
authorKeith Packard <keithp@keithp.com>
Sun, 17 Jul 2011 00:37:20 +0000 (17:37 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 17 Jul 2011 03:47:32 +0000 (20:47 -0700)
grid bag + box does some strange stuff, this appears to avoid the
worst of the interactions.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosSiteMapPreload.java

index 2d9468b90e18925f7ad07ee1b1b7593ba2b9a5d6..f939e9d6f71c3e0396b397a2beab46eb1c435e7d 100644 (file)
@@ -217,7 +217,7 @@ public class AltosSiteMapPreload extends JDialog implements ActionListener {
                c.fill = GridBagConstraints.NONE;
                c.anchor = GridBagConstraints.CENTER;
                c.insets = i;
-               c.weightx = 1;
+               c.weightx = 0;
                c.weighty = 0;
 
                c.gridx = 0;
@@ -234,7 +234,7 @@ public class AltosSiteMapPreload extends JDialog implements ActionListener {
                c.fill = GridBagConstraints.NONE;
                c.anchor = GridBagConstraints.CENTER;
                c.insets = i;
-               c.weightx = 1;
+               c.weightx = 0;
                c.weighty = 0;
 
                c.gridx = 1;