correct widnow size
This commit is contained in:
parent
16bbeb5d16
commit
1d8ccf4035
|
|
@ -77,10 +77,10 @@
|
||||||
function resize(canvasObj) {
|
function resize(canvasObj) {
|
||||||
document.querySelector('.lds-default').style.display = "none";
|
document.querySelector('.lds-default').style.display = "none";
|
||||||
canvasObj.style = null;
|
canvasObj.style = null;
|
||||||
canvasObj.width = window.screen.width * window.devicePixelRatio;
|
canvasObj.width = document.body.scrollWidth * window.devicePixelRatio;
|
||||||
canvasObj.height = window.screen.height * window.devicePixelRatio;
|
canvasObj.height = document.body.scrollHeight * window.devicePixelRatio;
|
||||||
canvasObj.style.width = window.screen.width + "px";
|
canvasObj.style.width = document.body.scrollWidth + "px";
|
||||||
canvasObj.style.height = window.screen.widheightth + "px";
|
canvasObj.style.height = document.body.scrollHeight + "px";
|
||||||
}
|
}
|
||||||
vkBridge.send("VKWebAppInit", {});
|
vkBridge.send("VKWebAppInit", {});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue