corretto bug onload

This commit is contained in:
Luca Trupiano 2025-01-30 18:22:10 +01:00
parent 728fa373b2
commit d7aeddbc58
1 changed files with 7 additions and 1 deletions

View File

@ -16,7 +16,7 @@ var numeroPagine = 0;
var latestOffset = 0;
const cssCantoHeight = 0.65;
const cssTableMainHeight = 0.95; //.tableMain {height: 95%;}
export const cssTableMainHeight = 0.95; //.tableMain {height: 95%;}
const bgImgUrl1 = "./images/fefeff.png";
const bgImgUrl2 = "./images/f8f9fa.png";
const textAbout = '<div class="container"><div class="row align-items-start pt-3"><div class="col">'
@ -1705,6 +1705,12 @@ $(document).ready(function() {
Cookies.set('LiDa_style', newStyle); };
};
var cantoHeightToSet = $("body")[0].clientHeight*cssCantoHeight;
var maxCantoHeightToSet = $("body")[0].clientHeight*cssTableMainHeight-110; // 63 padding top + 47 margine bottom
$(visCantoClass).css("max-height", maxCantoHeightToSet);
$(visCantoClass).css("height", cantoHeightToSet);
$(displayCantoId).css("max-height", maxCantoHeightToSet);
$(displayCantoId).css("height", cantoHeightToSet);
});