From d4cef100e7b104e25dc0a28e205ff278ab9bac07 Mon Sep 17 00:00:00 2001 From: q Date: Mon, 15 Feb 2016 07:17:35 +0200 Subject: [PATCH] quickfix --- galleryscript.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/galleryscript.js b/galleryscript.js index 41124c1..42f4bcf 100644 --- a/galleryscript.js +++ b/galleryscript.js @@ -1558,7 +1558,10 @@ function flipzoom() { showimage(currentimage); } function getmaxthumbs() { - return Math.floor((document.body.clientWidth-30)/100)-2; + maxthumbs=Math.floor((document.body.clientWidth-30)/100)-2; + // quick fix for larger displays + maxthumbs=maxthumbs - Math.floor(document.body.clientWidth/1000); + return maxthumbs; } function isHTML(s) {