diff --git a/src/static/web/css/admin.css b/src/static/web/css/admin.css index 4edf4329..36cdd9e6 100644 --- a/src/static/web/css/admin.css +++ b/src/static/web/css/admin.css @@ -339,11 +339,11 @@ body.menu-show .admin-content { display:none } .fullpagediv { - position:absolute; + position:fixed; top:0; left:0; - width:100%; - height:100%; + width:100vw; + height:100vh; background:#000; opacity:0.5; z-index:1980 diff --git a/src/static/web/js/admin.main.js b/src/static/web/js/admin.main.js index 70a38efd..a0b98b85 100644 --- a/src/static/web/js/admin.main.js +++ b/src/static/web/js/admin.main.js @@ -116,7 +116,7 @@ function ChangeFullDiv(showhide, screenheigt) { if (!newobj) { newobj = document.createElement("div"); newobj.id = "fullpagediv"; - newobj.style.position = "absolute"; + newobj.style.position = "fixed"; newobj.className = "fullpagediv"; newobj.style.height = document.body.clientHeight + "px"; document.body.appendChild(newobj);