changeset 126:a2aa78525c76

RT-16482: Simple TableView operations are inefficient, part 2
author jgiles
date Thu, 08 Dec 2011 15:27:17 +1000
parents 6acce1b14ede
children 682bde65e6d3
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/VirtualFlow.java
diffstat 1 files changed, 11 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/VirtualFlow.java	Thu Dec 08 15:11:56 2011 +1000
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/VirtualFlow.java	Thu Dec 08 15:27:17 2011 +1000
@@ -1145,15 +1145,17 @@
         updateScrollBarsAndViewport(lastViewportLength);
     }
 
-//    @Override protected void setWidth(double value) {
-//        super.setWidth(value);
-//        layoutChildren();
-//    }
-//    
-//    @Override protected void setHeight(double value) {
-//        super.setHeight(value);
-//        layoutChildren();
-//    }
+    @Override protected void setWidth(double value) {
+        super.setWidth(value);
+        setNeedsLayout(true);
+        requestLayout();
+    }
+    
+    @Override protected void setHeight(double value) {
+        super.setHeight(value);
+        setNeedsLayout(true);
+        requestLayout();
+    }
 
     private void updateScrollBarsAndViewport(double lastViewportLength) {
         // Assign the hbar and vbar to the breadthBar and lengthBar so as