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{ html, body{
height: 100%; /*height: 100%;*/
scroll-behavior: smooth; scroll-behavior: smooth;
height: 100vh;
height: -webkit-fill-available;
height: fill-available;
max-height: fill-available;
max-height: -webkit-fill-available;
} }
.wrapper_content { .wrapper_content {

View File

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