RFR: 8190264: JScrollBar ignores its border when using macOS Mac OS X Aqua look and feel [v11]

Alexey Ivanov aivanov at openjdk.java.net
Fri Jan 7 18:08:29 UTC 2022


On Wed, 5 Jan 2022 16:58:53 GMT, Alisen Chung <achung at openjdk.org> wrote:

>> Adjusted the AquaLF scrollbar to account for border inset settings when dragging the thumb and clicking on the track.
>
> Alisen Chung has updated the pull request incrementally with one additional commit since the last revision:
> 
>   added check for other L&Fs, added newline to test

src/java.desktop/macosx/classes/com/apple/laf/AquaScrollBarUI.java line 195:

> 193:         return new Rectangle(insets.left, 0,
> 194:                 fScrollBar.getWidth() - (insets.left + insets.right),
> 195:                 fScrollBar.getHeight());

What about vertical insets? Horizontal insets are handled now yet the border could render something vertically.

-------------

PR: https://git.openjdk.java.net/jdk/pull/6374



More information about the client-libs-dev mailing list