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; }