summaryrefslogtreecommitdiff
path: root/javax/swing/BoxLayout.java
diff options
context:
space:
mode:
authorAnthony Balkissoon <abalkiss@redhat.com>2005-12-06 19:50:21 +0000
committerAnthony Balkissoon <abalkiss@redhat.com>2005-12-06 19:50:21 +0000
commit0274618ed1de3d5248c2dd03552f6de92afcbbc4 (patch)
tree183443b672d62a448c3e5dacbd177eeb5f1cd95b /javax/swing/BoxLayout.java
parentbe2bdf4c225f16447b68e8701ec4470483ec7ca2 (diff)
downloadclasspath-0274618ed1de3d5248c2dd03552f6de92afcbbc4.tar.gz
2005-12-06 Anthony Balkissoon <abalkiss@redhat.com>
Fixes bug #25233 * javax/swing/BoxLayout.java: (maximumLayoutSize): Don't add the Insets to the Dimension calculated in checkTotalRequirements().
Diffstat (limited to 'javax/swing/BoxLayout.java')
-rw-r--r--javax/swing/BoxLayout.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/javax/swing/BoxLayout.java b/javax/swing/BoxLayout.java
index ebc0b4c21..40cf305cc 100644
--- a/javax/swing/BoxLayout.java
+++ b/javax/swing/BoxLayout.java
@@ -334,9 +334,8 @@ public class BoxLayout implements LayoutManager2, Serializable
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);
}
}