changeset 4933:bab22eeb95fd

RT-15121) ScrollBar emitting requestLayout() up hierarchy every time it's value changes
author mickf
date Wed, 04 Sep 2013 13:49:56 +0100
parents e94c28bc5396
children c1e031aecfea
files modules/controls/src/main/java/com/sun/javafx/scene/control/skin/ScrollBarSkin.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/ScrollBarSkin.java	Wed Sep 04 15:57:05 2013 +1200
+++ b/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/ScrollBarSkin.java	Wed Sep 04 13:49:56 2013 +0100
@@ -329,9 +329,11 @@
         super.handleControlPropertyChanged(p);
         if ("ORIENTATION".equals(p)) {
             getSkinnable().requestLayout();
-        } else if ("MIN".equals(p) || "MAX".equals(p) || "VALUE".equals(p) || "VISIBLE_AMOUNT".equals(p)) {
+        } else if ("MIN".equals(p) || "MAX".equals(p) || "VISIBLE_AMOUNT".equals(p)) {
             positionThumb();
             getSkinnable().requestLayout();
+        } else if ("VALUE".equals(p)) {
+            positionThumb();
         }
     }