changeset 7227:8e8843aaaff2

RT-37394 ProgressBar starts from wrong position when switching from indeterminate to determinate mode Reviewed by: jgiles
author Martin Sladecek <martin.sladecek@oracle.com>
date Tue, 10 Jun 2014 07:50:57 +0200
parents 619b6657bf41
children 815505eb4abc
files modules/controls/src/main/java/com/sun/javafx/scene/control/skin/ProgressBarSkin.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/ProgressBarSkin.java	Tue Jun 10 08:45:29 2014 +0300
+++ b/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/ProgressBarSkin.java	Tue Jun 10 07:50:57 2014 +0200
@@ -366,6 +366,8 @@
 
             // remove clip
             bar.setClip(null);
+            bar.setScaleX(1);
+            bar.setTranslateX(0);
             clipRegion.translateXProperty().unbind();
         }
     }