Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed IE issues, it was caused by incorrect values send to the animator.

  • Loading branch information...
commit d994282f03fc771be9b801217733ef1e49a63b0d 1 parent b75c027
@3rd-Eden authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 1.7/SpryProgressBar.js
View
5 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
Please sign in to comment.
Something went wrong with that request. Please try again.