changeset 6019:70d0a0adb21f

8014423: [macosx] The scrollbar's block increment performs incorrectly Reviewed-by: anthony, art
author serb
date Tue, 14 May 2013 20:22:55 +0400
parents 2091127583a3
children 789f4a57496d
files src/macosx/classes/sun/lwawt/LWScrollBarPeer.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/macosx/classes/sun/lwawt/LWScrollBarPeer.java	Tue May 14 08:07:08 2013 -0700
+++ b/src/macosx/classes/sun/lwawt/LWScrollBarPeer.java	Tue May 14 20:22:55 2013 +0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -57,6 +57,8 @@
     void initializeImpl() {
         super.initializeImpl();
         final Scrollbar target = getTarget();
+        setLineIncrement(target.getUnitIncrement());
+        setPageIncrement(target.getBlockIncrement());
         setValues(target.getValue(), target.getVisibleAmount(),
                   target.getMinimum(), target.getMaximum());