This commit is contained in:
SBD
2024-01-31 15:20:20 +03:00
parent faaea1129a
commit 618f7751d1
2 changed files with 11 additions and 6 deletions

View File

@@ -136,8 +136,13 @@ legend {
}
html, body{
height: 100%;
/*height: 100%;*/
scroll-behavior: smooth;
height: 100vh;
height: -webkit-fill-available;
height: fill-available;
max-height: fill-available;
max-height: -webkit-fill-available;
}
.wrapper_content {

View File

@@ -11,11 +11,11 @@ window.onload = function (){
middleWareJS()
openOrCloseCurtainSupportChat()
openOverlayOrClose()
let body = document.querySelector("body")
const viewPortH = body.getBoundingClientRect().height;
const windowH = window.innerHeight;
const browserUiBarsH = viewPortH - windowH;
body.style.height = `calc(100vh - ${browserUiBarsH}px)`;
// let body = document.querySelector("body")
// const viewPortH = body.getBoundingClientRect().height;
// const windowH = window.innerHeight;
// const browserUiBarsH = viewPortH - windowH;
// body.style.height = `calc(100vh - ${browserUiBarsH}px)`;
// let height = window.innerHeight
// document.querySelector('body').style.maxHeight = height + 'px'
// document.querySelector('body').style.height = height + 'px'