diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2019-09-27 08:37:31 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2019-09-27 08:37:31 +0200 |
commit | 096df58889ff30ca30a2b3b007bcf58ba1c238e5 (patch) | |
tree | bd1daa0cee35ab74c5d2ba48dbdb9bbe245e9a52 | |
parent | bbecd7e365677b5b99dcd0ffa544e758cbdfa4a7 (diff) |
set style.overflow = "hidden"
To really avoid scrollbars in the 100% size case
-rw-r--r-- | index.html | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -25,7 +25,7 @@ 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; } + html, 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; } @@ -201,6 +201,7 @@ // undefined root size canvas.style.width = canvas.style.height = "100%"; document.documentElement.style.height = document.body.style.height = "100%"; + document.documentElement.style.overflow = document.body.style.overflow = "hidden"; } qtLoader.resizeCanvasElement(canvas); } |