mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-20 20:00:28 +00:00
8014423: [macosx] The scrollbar's block increment performs incorrectly
Reviewed-by: anthony, art
This commit is contained in:
parent
de7e7cb85b
commit
ec01b8e3e1
@ -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
|
||||
@ -56,6 +56,8 @@ final class LWScrollBarPeer extends LWComponentPeer<Scrollbar, JScrollBar>
|
||||
void initializeImpl() {
|
||||
super.initializeImpl();
|
||||
final Scrollbar target = getTarget();
|
||||
setLineIncrement(target.getUnitIncrement());
|
||||
setPageIncrement(target.getBlockIncrement());
|
||||
setValues(target.getValue(), target.getVisibleAmount(),
|
||||
target.getMinimum(), target.getMaximum());
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user