diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2019-09-26 20:49:39 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2019-09-26 20:49:39 +0200 |
commit | bbecd7e365677b5b99dcd0ffa544e758cbdfa4a7 (patch) | |
tree | 5ad70e05a8af08b883f99f8c475e00c03fec856f | |
parent | 388330d7275addbe786ab29bf4a4c00cf35f21c5 (diff) |
Set also document root height to 100%
-rw-r--r-- | index.html | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -25,7 +25,7 @@ font-weight: 100; font-style: italic; } - html, body { padding: 0; margin: 0; background-color: #262525; color: #e0e0e0; font-family: Titillium; font-size: 1.1em; font-weight: 100; font-style: italic; } + body { padding: 0; margin: 0; background-color: #262525; color: #e0e0e0; font-family: Titillium; font-size: 1.1em; font-weight: 100; font-style: italic; } a {color: #e0e0e0; } canvas { border: 0px none; height: 0px; width: 0px; margin: auto; outline: 0px solid transparent; caret-color: transparent; cursor: default; } #qtspinner { margin: 0; } @@ -199,9 +199,8 @@ canvas.style.height = `${height}px`; } else { // undefined root size - canvas.style.width = "100%"; - canvas.style.height = "100%"; - document.body.style.height = "100%"; + canvas.style.width = canvas.style.height = "100%"; + document.documentElement.style.height = document.body.style.height = "100%"; } qtLoader.resizeCanvasElement(canvas); } |