This patch fixes PR 25233.

2005-12-06  Anthony Balkissoon  <[EMAIL PROTECTED]>

        Fixes bug #25233
        * javax/swing/BoxLayout.java:
        (maximumLayoutSize): Don't add the Insets to the Dimension calculated 
        in checkTotalRequirements().

--Tony
Index: javax/swing/BoxLayout.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/BoxLayout.java,v
retrieving revision 1.25
diff -u -r1.25 BoxLayout.java
--- javax/swing/BoxLayout.java	2 Nov 2005 11:47:57 -0000	1.25
+++ javax/swing/BoxLayout.java	6 Dec 2005 19:34:56 -0000
@@ -334,9 +334,8 @@
           throw new AWTError("BoxLayout can't be shared");
 
         checkTotalRequirements();
-        Insets i = container.getInsets();
-        return new Dimension(xTotal.maximum + i.left + i.right,
-                             yTotal.maximum + i.top + i.bottom);
+        return new Dimension(xTotal.maximum,
+                             yTotal.maximum);
       }
   }
 
_______________________________________________
Classpath-patches mailing list
Classpath-patches@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to