RFR: 8015854: [macosx] JButton's HTML ImageView adding unwanted padding [v4]

DamonGuy duke at openjdk.java.net
Tue Mar 1 23:25:04 UTC 2022


On Tue, 1 Mar 2022 12:20:13 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>> The text was also unexpectedly shifted, so this zero inset fixes that issue as well. Setting the insets to zero for all HTML fixes the unwanted padding.
>
> Should we create a separate test for HTML text? Probably manual only but still. If it is a known issue and it's also resolved by this fix, I find such a test useful.

I can definitely try to do so. The newest version of the test is now headless using BufferedImage. By manual, do you mean making a headful test where the tester clicks pass or fail according to the position of HTML text on the button?

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

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



More information about the client-libs-dev mailing list