changeset 10314:9ef943527049

8172364: Ensemble8 Canvas Fireworks jitters while animating Reviewed-by: kcr
author ckyang
date Thu, 02 Feb 2017 11:42:53 -0800
parents 12de2b051a29
children 020fbca40bf9
files modules/javafx.graphics/src/main/java/javafx/scene/Node.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/modules/javafx.graphics/src/main/java/javafx/scene/Node.java	Thu Feb 02 11:31:13 2017 -0800
+++ b/modules/javafx.graphics/src/main/java/javafx/scene/Node.java	Thu Feb 02 11:42:53 2017 -0800
@@ -4029,9 +4029,9 @@
         // unnecessary layout for the case of a non-resizable within a group
         Parent p = getParent();
 
-        // Need to propagate layout if this change isn't triggered by its parent
+        // Need to propagate layout if parent isn't part of performing layout
         if (isManaged() && (p != null) && !(p instanceof Group && !isResizable())
-                && !p.isCurrentLayoutChild(this)) {
+                && !p.isPerformingLayout()) {
             // Force its parent to fix the layout since it is a managed child.
             p.requestLayout(true);
         }