changeset 8008:ce204e7db505

RT-38460: [CSS, Tooltip] styleable parent is null when tooltip is manually shown
author David Grieve<david.grieve@oracle.com>
date Tue, 16 Sep 2014 12:06:01 -0400
parents 887985e5611d
children a61ce4ef33ae
files modules/controls/src/main/java/javafx/scene/control/Tooltip.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/javafx/scene/control/Tooltip.java	Tue Sep 16 12:05:58 2014 -0400
+++ b/modules/controls/src/main/java/javafx/scene/control/Tooltip.java	Tue Sep 16 12:06:01 2014 -0400
@@ -640,6 +640,9 @@
     }
 
     @Override public Styleable getStyleableParent() {
+        if (BEHAVIOR.hoveredNode == null) {
+            return super.getStyleableParent();
+        }
         return BEHAVIOR.hoveredNode;
     }