From 24ce86c8f3f61e6f84d59db9f96fbcdc15efbca3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wiesner=20Andr=C3=A1s?= Date: Wed, 20 Jan 2021 23:42:20 +0100 Subject: [PATCH] =?UTF-8?q?g=C3=B6rget=C5=91s=C3=A1vok=20Firefoxban=20elt?= =?UTF-8?q?=C3=BCntetve?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/phw.js | 4 ++++ phw.css | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/js/phw.js b/js/phw.js index e618009..38ea13b 100644 --- a/js/phw.js +++ b/js/phw.js @@ -530,6 +530,9 @@ function init_viewer() { }, false); window.addEventListener("resize", (e) => { + change_viewer_magnification(1, true); + change_viewer_offset({ x: 0, y: 0 }, true); + setTimeout(() => { place_artcaptions(); }, 400); @@ -635,6 +638,7 @@ var viewer_open = false; function open_viewer(details) { let img = o("viewerimg"); img.style.opacity = "0"; + img.style.left = img.style.top = "0px"; img.src = "ARTWORKS/published/" + details.Image_FileName; // feliratok kiírása diff --git a/phw.css b/phw.css index b9597b3..0ed7a77 100644 --- a/phw.css +++ b/phw.css @@ -19,6 +19,10 @@ body { --DESC-COLOR: white; background-color: var(--PAGE-BGCOLOR); + /*scrollbar-width: none;*/ +} + +html { scrollbar-width: none; }