bloccata posizione menu nav canti

This commit is contained in:
Luca Trupiano 2023-02-17 16:11:39 +01:00
parent b6c4278206
commit 0c68c16791
2 changed files with 10 additions and 7 deletions

View File

@ -120,8 +120,9 @@
<div class="d-table h-100 w-100"> <div class="d-table h-100 w-100">
<div id="colNavigazione" class="d-table-cell menuNavigazione align-top""> <div id="colNavigazione" class="d-table-cell menuNavigazione">
<div id="accordionNav" class="pr-2"> <div id="accordionNav" class="pr-2 sticky-top">
<div style="height: 63px; overflow:hidden;">&nbsp;</div>
<div class="card"> <div class="card">
<div class="card-header px-1" id="headingOne"> <div class="card-header px-1" id="headingOne">
<h6 class="mb-0"> <h6 class="mb-0">
@ -406,10 +407,11 @@
<div id="colVisualizza" class="d-table-cell bg-lida-vis border-left border-bottom align-top"> <div id="colVisualizza" class="d-table-cell bg-lida-vis border-left border-bottom align-top">
<div style="height: 63px; overflow:hidden;">&nbsp;</div>
<div class="d-table h-75 w-100"> <div class="d-table h-75 w-100">
<div class="d-table-row"> <div class="d-table-row">
<div class="blog-main visCanto w-100 h-100"> <div class="blog-main visCanto h-100">
<div id='displaycanto' class="w-100 py-3 pl-3"></div> <div id='displaycanto' class="py-3 pl-3 w-100"></div>
<div class="ui-resizable-handle ui-resizable-s border-bottom doubleborder"></div> <div class="ui-resizable-handle ui-resizable-s border-bottom doubleborder"></div>
</div> </div>
</div> </div>
@ -423,11 +425,13 @@
</div> </div>
<div id="colMinimap" class="d-table-cell bg-lida-vis minimap border-right border-bottom align-top"> <div id="colMinimap" class="d-table-cell bg-lida-vis minimap border-right border-bottom align-top">
<div style="height: 63px; overflow:hidden;">&nbsp;</div>
<div id="displayminimap" class="col p-0 m-0 w-100 h-100"></div> <div id="displayminimap" class="col p-0 m-0 w-100 h-100"></div>
</div> </div>
<div id="colRicerca" class="d-table-cell menuRicerca align-top"> <div id="colRicerca" class="d-table-cell menuRicerca align-top">
<div style="height: 63px; overflow:hidden;">&nbsp;</div>
<div class="w-100 pl-2 py-0 m-0"> <div class="w-100 pl-2 py-0 m-0">
<form> <form>

View File

@ -17,7 +17,7 @@ let initOffset = '';
function drawMinimap(name){ function drawMinimap(name){
currentMinimap = name; currentMinimap = name;
initOffset = parseInt($("body").css("padding-top").replace("px", "")); initOffset = parseInt($("body").css("padding-top").replace("px", ""))+63;
showMinimap(); showMinimap();
$(displayCantoId).scrollTop(0); $(displayCantoId).scrollTop(0);
$(minimapviewerId).offset({ top: initOffset}); $(minimapviewerId).offset({ top: initOffset});
@ -93,8 +93,7 @@ function showMinimap() {
let viewerHeight = (maxHeight*heightRatio)-2; // -2 = bordi let viewerHeight = (maxHeight*heightRatio)-2; // -2 = bordi
let viewerWidth = Math.min(viewerHeight/resizableRatio, maxWidth-2); let viewerWidth = Math.min(viewerHeight/resizableRatio, maxWidth-2);
realScale = (maxHeight/miniCantoHeight); realScale = Math.min((maxHeight/miniCantoHeight), 1);
minimap.style.width = '100%'; minimap.style.width = '100%';
minimapContent.style.transform = `scale(${realScale})`; minimapContent.style.transform = `scale(${realScale})`;