RFR: 8338145: ComboBox popup is in wrong location on first showing

Christopher Schnick duke at openjdk.org
Mon Jan 19 11:44:50 UTC 2026


The resize method in the combo box skin does not take into account whether the popup was autofixed or not. This causes a wrong position if the content size is changed, which it often is on initial show.

If anyone has a better idea how to actually determine whether a popup was autofixed, then I can improve the check. Currently it relies purely on the popup position and the combo box position.

I tested this fix manually on Windows with a reproducer and it works as expected there

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

Commit messages:
 - Improve autofix detection
 - Fixes
 - Add autofix check

Changes: https://git.openjdk.org/jfx/pull/2044/files
  Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=2044&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8338145
  Stats: 15 lines in 1 file changed: 12 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jfx/pull/2044.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/2044/head:pull/2044

PR: https://git.openjdk.org/jfx/pull/2044


More information about the openjfx-dev mailing list