changeset 2124:3ec92a21ff66

RT-27043: [TreeTableView, TreeView] When showRoot is set to false, text in the child items is not aligned correctly.
author jgiles
date Fri, 04 Jan 2013 09:17:41 +1300
parents 30925f13810e
children bdd65f2577e8
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TreeTableViewSkin.java javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TreeViewSkin.java
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TreeTableViewSkin.java	Fri Jan 04 09:06:28 2013 +1300
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TreeTableViewSkin.java	Fri Jan 04 09:17:41 2013 +1300
@@ -230,6 +230,8 @@
             weakRootListener = new WeakEventHandler(rootListener);
             getRoot().addEventHandler(TreeItem.<S>treeNotificationEvent(), weakRootListener);
         }
+        
+        updateItemCount();
     }
     
     
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TreeViewSkin.java	Fri Jan 04 09:06:28 2013 +1300
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TreeViewSkin.java	Fri Jan 04 09:17:41 2013 +1300
@@ -194,6 +194,8 @@
             weakRootListener = new WeakEventHandler(rootListener);
             getRoot().addEventHandler(TreeItem.<T>treeNotificationEvent(), weakRootListener);
         }
+        
+        updateItemCount();
     }
 
     @Override public int getItemCount() {