changeset 7131:0867438d36b7

RT-37184 when pressing button "Length", the small gradient will disappear at some points Reviewed by: jgiles
author Martin Sladecek <martin.sladecek@oracle.com>
date Tue, 27 May 2014 10:17:07 +0200
parents e76f5f5b0047
children be04d004a78c
files modules/controls/src/main/java/com/sun/javafx/scene/control/skin/ProgressBarSkin.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/ProgressBarSkin.java	Tue May 27 10:14:53 2014 +0200
+++ b/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/ProgressBarSkin.java	Tue May 27 10:17:07 2014 +0200
@@ -284,7 +284,7 @@
 
         if (!clipRegion.translateXProperty().isBound()) {
             clipRegion.translateXProperty().bind(new When(bar.scaleXProperty().isEqualTo(-1.0, 1e-100)).
-                    then(bar.translateXProperty().subtract(w).add(getIndeterminateBarLength())).
+                    then(bar.translateXProperty().subtract(w).add(indeterminateBarLengthProperty())).
                     otherwise(bar.translateXProperty().negate()));
         }
     }