Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 54d339413dedd46ceeff66af490b7194fdabba43 1 parent a3f3524
@matt-richardson authored
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
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.