From e8a1c1ea3041d8eba6dff24d6d8998ac4584d673 Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Fri, 23 Jan 2015 22:17:15 +0100 Subject: [PATCH] Fixed incorrect size calculation of photos --- dist/main.js | Bin 169723 -> 169724 bytes src/scripts/photo.js | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/main.js b/dist/main.js index 189ee16aab2aea28e171e882197850d97b4378dc..5750e4646feb529ced1e6d807b00027f1adf2353 100644 GIT binary patch delta 26 icmeypmg~=2u7(!IEljIq*)mcy(=$r8ua{-=sRRI?DGIRw delta 25 hcmeyfmh1Ogu7(!IEljIqS<5q1N;0-@kY)0z1OSu{3RnOD diff --git a/src/scripts/photo.js b/src/scripts/photo.js index 6a6ae3c..ecd4fd8 100644 --- a/src/scripts/photo.js +++ b/src/scripts/photo.js @@ -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) {