Skip to content
Browse files

Fix bug for square photos

When there was no minimum dimensions, and the photo was square, it would
not constrain to the size of the screen.
(This change may need to be added to the other cases of the if
statement)
  • Loading branch information...
1 parent a3f3524 commit 54d339413dedd46ceeff66af490b7194fdabba43 @matt-richardson matt-richardson committed Jun 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 flickr/js/supersized.flickr.1.1.2.js
View
2 flickr/js/supersized.flickr.1.1.2.js
@@ -560,7 +560,7 @@
if ((browserheight/browserwidth) > ratio){
options.fit_landscape && ratio <= 1 ? resizeWidth() : resizeHeight(); //If landscapes are set to fit
} else {
- options.fit_portrait && ratio > 1 ? resizeHeight() : resizeWidth(); //If portraits are set to fit
+ options.fit_portrait && ratio >= 1 ? resizeHeight() : resizeWidth(); //If portraits are set to fit
}
}

0 comments on commit 54d3394

Please sign in to comment.
Something went wrong with that request. Please try again.