RFR: 8309460: JScrollBar leaves behind clutter for non-integer UI scales [v2]
Alexey Ivanov
aivanov at openjdk.org
Thu Mar 7 16:22:55 UTC 2024
On Thu, 22 Feb 2024 05:50:11 GMT, Tejesh R <tr at openjdk.org> wrote:
> The test can be converted to automatic by comparing the captured scroll area before MousePress and between MousePress and Release events.
I agree, the test can be automatic. Grab the thumb with robot and move to the right edge. Without releasing the left mouse button¹, create a multiresolution screenshot to get all the pixels without scaling the image down. The background of the scrollbar on the captured screenshot should not contain darker pixels.
¹ After you release the mouse button, the position of the thumb is adjusted, and the entire scrollbar is repainted. At which point, the leftover darker lines disappear from the scrollbar background.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/17484#issuecomment-1983889766
More information about the client-libs-dev
mailing list