changeset 1292:b6f81f47c4c8

RT-22428: TableColumns are appearing collapsed by default
author jgiles
date Wed, 13 Jun 2012 09:44:14 +1200
parents 35c426930d23
children 541a5c63514f
files javafx-ui-controls/src/javafx/scene/control/TableCell.java
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/javafx/scene/control/TableCell.java	Tue Jun 12 20:21:58 2012 +1200
+++ b/javafx-ui-controls/src/javafx/scene/control/TableCell.java	Wed Jun 13 09:44:14 2012 +1200
@@ -97,8 +97,12 @@
     };
     
     @Override void indexChanged() {
-        itemDirty = true;
-        requestLayout();
+        // Ideally we would just use the following two lines of code, rather
+        // than the updateItem() call beneath, but if we do this we end up with
+        // RT-22428 where all the columns are collapsed.
+        // itemDirty = true;
+        // requestLayout();
+        updateItem();
     }
 
     /*