wasm: Use % instead of vh for canvas dimensions

Pick-to: 6.3
Fixes: QTBUG-95067
Change-Id: I19e439eb81200728c2b773ab6799bb205caa1231
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
bb10
Aleksandr Reviakin 2022-03-11 11:46:01 +01:00 committed by Morten Johan Sørvig
parent 9c6b986d96
commit 367f96aedf
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@
<title>@APPNAME@</title>
<style>
/* Make the html body cover the entire (visual) viewport with no scroll bars. */
html, body { padding: 0; margin: 0; overflow:hidden; height: 100vh }
html, body { padding: 0; margin: 0; overflow:hidden; height: 100% }
/* Make the canvas cover the entire body */
canvas { height:100%; width:100%; }
</style>