Fixed incorrect size calculation of photos

pull/296/head
Tobias Reich 9 years ago
parent 5d5f86307e
commit e8a1c1ea30

2
dist/main.js vendored

File diff suppressed because one or more lines are too long

@ -566,7 +566,7 @@ photo.getSize = function() {
// Detect if the photo will be shown scaled,
// because the screen size is smaller than the photo
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
if (pixelRatio!==undefined&&pixelRatio>1) {

Loading…
Cancel
Save