corretto bug onload
This commit is contained in:
parent
728fa373b2
commit
d7aeddbc58
|
@ -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);
|
||||
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue