diff options
author | Lillian Angel <langel@redhat.com> | 2006-02-28 20:10:30 +0000 |
---|---|---|
committer | Lillian Angel <langel@redhat.com> | 2006-02-28 20:10:30 +0000 |
commit | 2622216d1d04044076e674c9f6154ae81c81ec3c (patch) | |
tree | 200e81551983719a2e5a211271074744554b6bb1 | |
parent | ea6c1ee0a0f2106335f1d502cae114a79fa8ac4a (diff) | |
download | classpath-2622216d1d04044076e674c9f6154ae81c81ec3c.tar.gz |
2006-02-28 Lillian Angel <langel@redhat.com>
* javax/swing/ViewportLayout.java
(layoutContainer): Should not extend container to be
minimum size. Mauve test shows that the preferred size
and the size of the viewport can be set smaller than
the minimum.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | javax/swing/ViewportLayout.java | 12 |
2 files changed, 8 insertions, 12 deletions
@@ -1,5 +1,13 @@ 2006-02-28 Lillian Angel <langel@redhat.com> + * javax/swing/ViewportLayout.java + (layoutContainer): Should not extend container to be + minimum size. Mauve test shows that the preferred size + and the size of the viewport can be set smaller than + the minimum. + +2006-02-28 Lillian Angel <langel@redhat.com> + PR classpath/25675 * javax/swing/JList.java (getPreferredScrollableViewportSize): Added a check to determine diff --git a/javax/swing/ViewportLayout.java b/javax/swing/ViewportLayout.java index a4b7a8a5d..674de959f 100644 --- a/javax/swing/ViewportLayout.java +++ b/javax/swing/ViewportLayout.java @@ -193,18 +193,6 @@ public class ViewportLayout implements LayoutManager, Serializable if (overextension > 0) portBounds.x -= overextension; - // If the calculated view size was smaller than the minimum size, - // extend till the minimum size. - if (viewPref.height<viewMinimum.height) - { - viewPref.height = viewMinimum.height; - } - - if (viewPref.width<viewMinimum.width) - { - viewPref.width = viewMinimum.width; - } - port.setViewSize(viewPref); port.setViewPosition(portBounds.getLocation()); } |