From fab9038e741cd0feffada7f67b6c10ee9a944f39 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Sun, 3 Jul 2022 18:24:34 +0900 Subject: [PATCH] Set default slide size to 1000x1000 pixels #1948 --- addons/photoswipe/rx_photoswipe.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/photoswipe/rx_photoswipe.js b/addons/photoswipe/rx_photoswipe.js index 1af7bab7b..dc06dc4be 100644 --- a/addons/photoswipe/rx_photoswipe.js +++ b/addons/photoswipe/rx_photoswipe.js @@ -6,8 +6,8 @@ var getPSImageSize = function(el) { if (!size[0] || !size[1]) { var test = new Image(); test.src = el.src; - size[0] = test.naturalWidth ? test.naturalWidth : (test.width ? test.width : 0); - size[1] = test.naturalHeight ? test.naturalHeight : (test.height ? test.height : 0); + size[0] = test.naturalWidth ? test.naturalWidth : (test.width ? test.width : 1000); + size[1] = test.naturalHeight ? test.naturalHeight : (test.height ? test.height : 1000); } return size; }