src/java.desktop/share/classes/java/awt/ScrollPane.java

Print this page

        

*** 498,510 **** } Component c = getComponent(0); Point p = getScrollPosition(); Dimension cs = calculateChildSize(); Dimension vs = getViewportSize(); - Insets i = getInsets(); ! c.reshape(i.left - p.x, i.top - p.y, cs.width, cs.height); ScrollPanePeer peer = (ScrollPanePeer)this.peer; if (peer != null) { peer.childResized(cs.width, cs.height); } --- 498,509 ---- } Component c = getComponent(0); Point p = getScrollPosition(); Dimension cs = calculateChildSize(); Dimension vs = getViewportSize(); ! c.reshape(- p.x, - p.y, cs.width, cs.height); ScrollPanePeer peer = (ScrollPanePeer)this.peer; if (peer != null) { peer.childResized(cs.width, cs.height); }