diff options
author | Aleksandr Reviakin <aleksandr.reviakin@qt.io> | 2022-03-11 11:46:01 +0100 |
---|---|---|
committer | Aleksandr Reviakin <aleksandr.reviakin@qt.io> | 2022-03-14 12:04:44 +0100 |
commit | dc3671fe9139dbb2b9eeb0e8a2ed265a839f4f22 (patch) | |
tree | 928b31a3a66d5a64efe8e124c1800fde403c4a71 | |
parent | 2e4f62332b9abc52deff8d8767a32e6270777873 (diff) |
wasm: Use % instead of vh for canvas dimensions
Fixes: QTBUG-95067
Change-Id: I19e439eb81200728c2b773ab6799bb205caa1231
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
(cherry picked from commit 367f96aedf006d23c05dc7c8a565f6d4ad30fa72)
-rw-r--r-- | src/plugins/platforms/wasm/wasm_shell.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/wasm/wasm_shell.html b/src/plugins/platforms/wasm/wasm_shell.html index f5712d0418..4453eb2ed5 100644 --- a/src/plugins/platforms/wasm/wasm_shell.html +++ b/src/plugins/platforms/wasm/wasm_shell.html @@ -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% } /* the canvas *must not* have any border or padding, or mouse coords will be wrong */ canvas { border: 0px none; background-color: white; height:100%; width:100%; } /* The contenteditable property is set to true for the canvas in order to support |