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

Prasanta Sadhukhan psadhukhan at openjdk.org
Mon Feb 5 06:21:01 UTC 2024


On Wed, 24 Jan 2024 21:34:52 GMT, Harshitha Onkar <honkar 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`.

`getTrackingBounds` returns the whole scrolling area bounds, in my case it is  java.awt.Rectangle[x=15,y=0,width=755,height=17]
each time `scrollByUnit `is called so it is repainting the whole scrolling area

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

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


More information about the client-libs-dev mailing list