changeset 1125:3eb36e8caed4

RT-21417: Scrolling functionality is broken starting from build 2.2-controls-scrum-151
author jgiles
date Thu, 24 May 2012 06:40:36 +1200
parents e6bbd16b510b
children 477dc95c9579
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/VirtualFlow.java
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/VirtualFlow.java	Wed May 23 13:12:35 2012 +1200
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/VirtualFlow.java	Thu May 24 06:40:36 2012 +1200
@@ -785,7 +785,10 @@
      * parent.
      */
     @Override public void requestLayout() {
-        if (getScene() != null && !isNeedsLayout()) {
+        // isNeedsLayout() is commented out due to RT-21417. This does not
+        // appear to impact performance (indeed, it may help), and resolves the
+        // issue identified in RT-21417.
+        if (getScene() != null/* && !isNeedsLayout()*/) {
             getScene().addToDirtyLayoutList(this);
             setNeedsLayout(true);
         }