changeset 1147:da1ccf14f0ec

Fix to TreeView to allow for double-click expand/collapse of branches
author jgiles
date Fri, 25 May 2012 12:12:21 +1200
parents e25824ec5126
children 68b8f8d36884
files javafx-ui-controls/src/com/sun/javafx/scene/control/behavior/TreeCellBehavior.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/behavior/TreeCellBehavior.java	Fri May 25 11:54:37 2012 +1200
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/behavior/TreeCellBehavior.java	Fri May 25 12:12:21 2012 +1200
@@ -254,7 +254,7 @@
             } else if (e.getClickCount() == 1) {
                 // cancel editing
                 tv.edit(null);
-            } else if (e.getClickCount() == 2 && ! getControl().isEditable()) {
+            } else if (e.getClickCount() == 2/* && ! getControl().isEditable()*/) {
                 // try to expand/collapse tree item
                 getControl().getTreeItem().setExpanded(! getControl().getTreeItem().isExpanded());
             }