RFR: 8231864: JavaFX Labels in Tab's VBox is not displayed until it is clicked

Lukasz Kostyra lkostyra at openjdk.org
Mon Dec 19 15:55:33 UTC 2022


Creating a not-displayed node and then modifying its contents caused JFX to not consume its old dirty region and thus not update it. When such node was displayed, its old dirty region was used for drawing, which in some cases (ex. new content taking more space - a Label having more text as in bug request) caused it to clip.

Resolved by always unionizing dirty regions with new bounds when calculating Node's transformed bounds.

Change was tested on macOS and Windows 10 and does not affect any tests.

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

Commit messages:
 - 8231864: JavaFX Labels in Tab's VBox is not displayed until it is clicked

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

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


More information about the openjfx-dev mailing list