From d994282f03fc771be9b801217733ef1e49a63b0d Mon Sep 17 00:00:00 2001 From: Arnout Kazemier Date: Fri, 28 May 2010 11:13:23 +0200 Subject: [PATCH] Fixed IE issues, it was caused by incorrect values send to the animator. --- 1.7/SpryProgressBar.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/1.7/SpryProgressBar.js b/1.7/SpryProgressBar.js index 08ab7fd..0cd4837 100644 --- a/1.7/SpryProgressBar.js +++ b/1.7/SpryProgressBar.js @@ -20,8 +20,11 @@ Spry.Widget.ProgressBar = function( element, opts ){ this.version = "0.0.0"; this.element = Spry.$$( element )[0]; this.bar = Spry.$$( "." + this.barClass, this.element ); - this.initialWidth = parseFloat( this.getStyleProp( this.bar[0], "width" ) ); // getStylePr + + // IE seems to require the parent node for information + this.initialWidth = parseFloat( this.getStyleProp( this.bar[0], "width" ) || this.getStyleProp( this.element, "width" ) ); // getStylePr this.currentWidth = this.initialWidth; + this.counter = 0; // this activates or resets the progress with the supplied value