Skip to content

Commit

Permalink
Fixed IE issues, it was caused by incorrect values send to the animator.
Browse files Browse the repository at this point in the history
  • Loading branch information
3rd-Eden committed May 28, 2010
1 parent b75c027 commit d994282
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion 1.7/SpryProgressBar.js
Expand Up @@ -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
Expand Down

0 comments on commit d994282

Please sign in to comment.