correct widnow size
This commit is contained in:
parent
16bbeb5d16
commit
1d8ccf4035
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue