I rewrote ViewportLayout.minimumLayoutSize() to unconditionally return
(4,4). This is backed by a Mauve test that I committed.
2006-01-30 Roman Kennke <[EMAIL PROTECTED]>
* javax/swing/ViewportLayout.java
(minimumLayoutSize): Rewritten to unconditionally return (4,4).
/Roman
Index: javax/swing/ViewportLayout.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/ViewportLayout.java,v
retrieving revision 1.23
diff -u -r1.23 ViewportLayout.java
--- javax/swing/ViewportLayout.java 10 Jan 2006 13:38:59 -0000 1.23
+++ javax/swing/ViewportLayout.java 30 Jan 2006 14:03:37 -0000
@@ -83,14 +83,16 @@
return new Dimension();
}
+ /**
+ * Return the minimumSize for the <code>JViewport</code> that is laid out
+ * by this layout manager.
+ *
+ * @param parent the viewport
+ */
public Dimension minimumLayoutSize(Container parent)
{
- JViewport vp = (JViewport)parent;
- Component view = vp.getView();
- if (view != null)
- return view.getMinimumSize();
- else
- return new Dimension();
+ // These values have been determined by the Mauve test for this method.
+ return new Dimension(4, 4);
}
/**