Browse Source

Support canvas scaling with window

- 7 years ago
parent
commit
493a67e6d5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      templates/web_shell/shell.html

+ 1 - 1
templates/web_shell/shell.html

@@ -58,7 +58,7 @@
       div.emscripten_border { border: 1px solid black; }
       
       /* the canvas *must not* have any border or padding, or mouse coords will be wrong */
-      canvas.emscripten { border: 0px none; background: black; }
+      canvas.emscripten { border: 0px none; background: black; width: 100% }
       
       #emscripten_logo {
         display: inline-block;