RFR: 8310072: JComboBox/DisabledComboBoxFontTestAuto: Enabled and disabled ComboBox does not match in these LAFs: GTK+ [v3]
Abhishek Kumar
abhiscxk at openjdk.org
Wed Apr 17 09:59:01 UTC 2024
On Tue, 16 Apr 2024 09:29:03 GMT, Abhishek Kumar <abhiscxk at openjdk.org> wrote:
> As far as I understand the test creates two enabled-JComboBox, then disables both, and then compares the disabled and enabled images. Why there are some differences in sizes and colors?
Difference in size is specific to LAFs like in case on Metal and Motif the sizes are same but in Nimbus and GTK it differs in size.
For Nimbus when DefaultListCellRenderer is used the width is 2px more than when SynthComboBoxRenderer is used. This is due to the difference in Inset values. In case of DefaultListCellRenderer the Insets value (left and right) are 1 px more than the insets value for SynthComboBoxRenderer.
Similarly in GTK LAF also the insets values are different in DefaultListCellRenderer and SynthComboBoxRenderer.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/18644#issuecomment-2060871022
More information about the client-libs-dev
mailing list