correct widnow size

This commit is contained in:
artem 2024-04-06 16:26:01 +03:00
parent 16bbeb5d16
commit 1d8ccf4035
1 changed files with 4 additions and 4 deletions

View File

@ -77,10 +77,10 @@
function resize(canvasObj) {
document.querySelector('.lds-default').style.display = "none";
canvasObj.style = null;
canvasObj.width = window.screen.width * window.devicePixelRatio;
canvasObj.height = window.screen.height * window.devicePixelRatio;
canvasObj.style.width = window.screen.width + "px";
canvasObj.style.height = window.screen.widheightth + "px";
canvasObj.width = document.body.scrollWidth * window.devicePixelRatio;
canvasObj.height = document.body.scrollHeight * window.devicePixelRatio;
canvasObj.style.width = document.body.scrollWidth + "px";
canvasObj.style.height = document.body.scrollHeight + "px";
}
vkBridge.send("VKWebAppInit", {});
</script>