changeset 7292:8ff6f815767f

RT-37380: [TreeTable] HelloTreeTableView - some tree items intermittently require double-click to expand or collapse
author jgiles
date Wed, 11 Jun 2014 11:34:36 +1200
parents 3aa343ef3313
children cf00d4cc7219
files modules/controls/src/main/java/com/sun/javafx/scene/control/behavior/TreeTableCellBehavior.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/com/sun/javafx/scene/control/behavior/TreeTableCellBehavior.java	Wed Jun 11 17:01:44 2014 -0400
+++ b/modules/controls/src/main/java/com/sun/javafx/scene/control/behavior/TreeTableCellBehavior.java	Wed Jun 11 11:34:36 2014 +1200
@@ -121,7 +121,7 @@
         if (column == treeColumn) {
             final Node disclosureNode = getControl().getTreeTableRow().getDisclosureNode();
             if (disclosureNode != null) {
-                if (disclosureNode.getBoundsInLocal().contains(x, y)) {
+                if (disclosureNode.getBoundsInParent().contains(x, y)) {
                     if (treeItem != null) {
                         treeItem.setExpanded(!treeItem.isExpanded());
                     }