From 79de64e13f4cb324f1958f1a1907723981d4664c Mon Sep 17 00:00:00 2001 From: Luca Trupiano Date: Thu, 9 Mar 2023 13:27:42 +0100 Subject: [PATCH] Fissato bug icone mancanti nella minimap --- js/minimap.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/minimap.js b/js/minimap.js index 4875356..02ba177 100644 --- a/js/minimap.js +++ b/js/minimap.js @@ -9,6 +9,7 @@ const displayminimapId = '#displayminimap'; const visCantoClass = '.visCanto'; const tableMainHeight = 0.95; //.tableMain {height: 95%;} const cantoHeight = 0.65; +const bodyScript = ' ' let minimap = document.createElement('div'); let viewer = document.createElement('div'); @@ -29,7 +30,8 @@ function drawMinimap(name){ currentMinimap = name; initOffset = parseInt($("body").css("padding-top").replace("px", ""))+63; showMinimap(); - $(displayCantoId).scrollTop(0); + //$(displayCantoId).scrollTop(0); + $(displayCantoWrapperId).scrollTop(0); $(minimapviewerId).offset({ top: initOffset}); var minimapTopPos = $(minimapviewerId).offset().top; @@ -74,6 +76,7 @@ function showMinimap() { iFrameDoc.write('
'); // da pulire... iFrameDoc.write(html); iFrameDoc.write('
'); + iFrameDoc.write(bodyScript); iFrameDoc.close(); iFrameDoc.head.appendChild(cssLinkb);