diff options
author | Anthony Balkissoon <abalkiss@redhat.com> | 2005-12-06 19:50:21 +0000 |
---|---|---|
committer | Anthony Balkissoon <abalkiss@redhat.com> | 2005-12-06 19:50:21 +0000 |
commit | 0274618ed1de3d5248c2dd03552f6de92afcbbc4 (patch) | |
tree | 183443b672d62a448c3e5dacbd177eeb5f1cd95b /javax/swing/BoxLayout.java | |
parent | be2bdf4c225f16447b68e8701ec4470483ec7ca2 (diff) | |
download | classpath-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.java | 5 |
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); } } |