Skip to content

Commit

Permalink
Oops, I reversed height and width in the image ratio calculations.
Browse files Browse the repository at this point in the history
  • Loading branch information
srobbin committed Jul 22, 2011
1 parent 1081310 commit d24f3df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jquery.backstretch.js
Expand Up @@ -54,7 +54,7 @@
self.css({width: "auto", height: "auto"});
imgWidth = this.width || $(e.target).width();
imgHeight = this.height || $(e.target).height();
imgRatio = imgHeight / imgWidth;
imgRatio = imgWidth / imgHeight;

_adjustBG(function() {
self.fadeIn(settings.speed, function(){
Expand Down
2 changes: 1 addition & 1 deletion jquery.backstretch.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d24f3df

Please sign in to comment.