From bbecd7e365677b5b99dcd0ffa544e758cbdfa4a7 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Thu, 26 Sep 2019 20:49:39 +0200 Subject: Set also document root height to 100% --- index.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 7445d28..aae723a 100644 --- a/index.html +++ b/index.html @@ -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); } -- cgit v1.2.3