[jfx20] RFR: 8301797: Pagination control has the wrong size

Andy Goryachev angorya at openjdk.org
Fri Feb 3 20:37:56 UTC 2023


Fixed regression introduced by JDK-8295754, targeting upstream **jfx20 branch**.

The method PaginationSkin.resetIndexes(true) has been moved to the original position in the constructor, fixing the initialization, while making sure no properties of the control are touched in the constructor (only in install()).

Added a test case.

Tested with the PaginationDisappear.java and the LeakTest app
https://github.com/andy-goryachev-oracle/Test/blob/main/src/goryachev/apps/LeakTestApp.java

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

Commit messages:
 - 8301797: fixed pagination initialization

Changes: https://git.openjdk.org/jfx/pull/1021/files
 Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1021&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8301797
  Stats: 29 lines in 2 files changed: 25 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/jfx/pull/1021.diff
  Fetch: git fetch https://git.openjdk.org/jfx pull/1021/head:pull/1021

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


More information about the openjfx-dev mailing list