diff options
Diffstat (limited to 'libjava/javax/swing/JScrollPane.java')
-rw-r--r-- | libjava/javax/swing/JScrollPane.java | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libjava/javax/swing/JScrollPane.java b/libjava/javax/swing/JScrollPane.java index 7e8bdce..8ccee7a 100644 --- a/libjava/javax/swing/JScrollPane.java +++ b/libjava/javax/swing/JScrollPane.java @@ -490,22 +490,15 @@ public class JScrollPane { // if the viewport changed, we should update the VSB / HSB // models according to the new vertical and horizontal sizes + Rectangle vr = vp.getViewRect(); Dimension vs = vp.getViewSize(); - // System.err.println("got change from viewport, vr=" + vr + ", vs=" + vs); if (vsb != null && (vsb.getMinimum() != 0 || vsb.getMaximum() != vs.height || vsb.getValue() != vr.y || vsb.getVisibleAmount() != vr.height)) - { - // System.err.println("setting vsb to " - // + "pos=" + vr.y - // + ", ext=" + vr.height - // + ", min=0" - // + ", max=" + vs.height); vsb.setValue(vr.y, vr.height, 0, vs.height); - } if (hsb != null && (hsb.getMinimum() != 0 |