Hey,
This patch fixes a bug in java.awt.ScrollPane's doLayout method. When
doLayout() is called, the location of the scrollpane's child should be
set to (0,0). This patch now causes a failing Harmony test to pass. I
have also committed a mauve test for it.
Cheers,
Tania
2006-12-08 Tania Bento <[EMAIL PROTECTED]>
* java/awt/ScrollPane.java
(doLayout): Change the location of the scrollpane's child
to (0, 0).
Index: java/awt/ScrollPane.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/ScrollPane.java,v
retrieving revision 1.31
diff -u -r1.31 ScrollPane.java
--- java/awt/ScrollPane.java 8 Dec 2006 16:49:36 -0000 1.31
+++ java/awt/ScrollPane.java 8 Dec 2006 20:38:51 -0000
@@ -525,6 +525,8 @@
p.y = dim.height;
setScrollPosition (p);
+
+ list[0].setLocation(new Point());
}
}