Fissato bug icone mancanti nella minimap

This commit is contained in:
Luca Trupiano 2023-03-09 13:27:42 +01:00
parent 70b036d22c
commit 79de64e13f
1 changed files with 4 additions and 1 deletions

View File

@ -9,6 +9,7 @@ const displayminimapId = '#displayminimap';
const visCantoClass = '.visCanto';
const tableMainHeight = 0.95; //.tableMain {height: 95%;}
const cantoHeight = 0.65;
const bodyScript = '<script type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script> <script nomodule src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"></script>'
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('<div class="blog-main w-100 " style="display: d-flex;">'); // da pulire...
iFrameDoc.write(html);
iFrameDoc.write('</div>');
iFrameDoc.write(bodyScript);
iFrameDoc.close();
iFrameDoc.head.appendChild(cssLinkb);