RFR: 8309460: JScrollBar leaves behind clutter for non-integer UI scales

Harshitha Onkar honkar at openjdk.org
Wed Jan 24 21:38:26 UTC 2024


On Wed, 24 Jan 2024 21:03:39 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> The suggested fix adds one more repaint of the rectangle where the scroll thumb is currently located. Or maybe not, and `getTrackBounds` returns the new rectangle by the time it's called in `scrollByUnit`.

This seems like a possible cause.

> I wonder if the problem can be reproduced by programmatically moving the thumb instead of dragging it with the mouse. Playing with the window size, uiScale, and the max value of the scrollbar could be required…

Good idea. I agree, especially with the case of max value of scroll bar.

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

PR Comment: https://git.openjdk.org/jdk/pull/17484#issuecomment-1908953767


More information about the client-libs-dev mailing list