Fixed incorrect size calculation of photos

This commit is contained in:
Tobias Reich 2015-01-23 22:17:15 +01:00
parent 5d5f86307e
commit e8a1c1ea30
2 changed files with 1 additions and 1 deletions

BIN
dist/main.js vendored

Binary file not shown.

View File

@ -566,7 +566,7 @@ photo.getSize = function() {
// Detect if the photo will be shown scaled, // Detect if the photo will be shown scaled,
// because the screen size is smaller than the photo // because the screen size is smaller than the photo
if (photo.json.width>view.width|| if (photo.json.width>view.width||
photo.json.width>view.height) scaled = true; photo.json.height>view.height) scaled = true;
// Calculate pixel ratio of screen // Calculate pixel ratio of screen
if (pixelRatio!==undefined&&pixelRatio>1) { if (pixelRatio!==undefined&&pixelRatio>1) {