Skip to content

Commit

Permalink
8231864: JavaFX Labels in Tab's VBox is not displayed until it is cli…
Browse files Browse the repository at this point in the history
…cked

Reviewed-by: arapte
  • Loading branch information
Lukasz Kostyra authored and arapte committed Jan 5, 2023
1 parent 94fb7ed commit 0dbc448
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,12 +330,14 @@ public void setTransformedBounds(BaseBounds bounds, boolean byTransformChangeOnl
// cache needs to be regenerated. So we will not invalidate it here.
if (dirtyBounds.isEmpty()) {
dirtyBounds = dirtyBounds.deriveWithNewBounds(transformedBounds);
dirtyBounds = dirtyBounds.deriveWithUnion(bounds);
} else {
// TODO I think this is vestigial from Scenario and will never
// actually occur in real life... (RT-23956)
// Non-empty dirty bounds mean that renderer did not consume them yet
// (ex. because the Node was not yet visible). We need to unionize dirty
// bounds with transformed bounds in case transformed bounds had changed
// and then proceed with updating dirty bounds to their new value.
dirtyBounds = dirtyBounds.deriveWithUnion(transformedBounds);
}
dirtyBounds = dirtyBounds.deriveWithUnion(bounds);
transformedBounds = transformedBounds.deriveWithNewBounds(bounds);
if (hasVisuals() && !byTransformChangeOnly) {
markDirty();
Expand Down

1 comment on commit 0dbc448

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.