Skip to content

Commit

Permalink
Use options.size instead of container' size
Browse files Browse the repository at this point in the history
  • Loading branch information
sachalifs committed May 14, 2014
1 parent 468648d commit 0867923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function LoadingLock (el, options) {

// set size of spinner from el's size or options
// defaults to `25`
this.size = Math.min(this.el.offsetWidth / 5, this.el.offsetHeight / 5) || options.size || 25;
this.size = options.size || Math.min(this.el.offsetWidth / 5, this.el.offsetHeight / 5) || 25;

}

Expand Down

0 comments on commit 0867923

Please sign in to comment.