Browse Source

use width, height 100%

Gregg Tavares 4 years ago
parent
commit
60a9330065
100 changed files with 374 additions and 306 deletions
  1. 1 1
      threejs/3dlut-base-cube-maker.html
  2. 1 1
      threejs/gpw-data-viewer.html
  3. 6 6
      threejs/lessons/ja/threejs-tips.md
  4. 4 4
      threejs/lessons/kr/threejs-align-html-elements-to-3d.md
  5. 2 2
      threejs/lessons/kr/threejs-backgrounds.md
  6. 4 4
      threejs/lessons/kr/threejs-multiple-scenes.md
  7. 4 4
      threejs/lessons/kr/threejs-offscreencanvas.md
  8. 6 6
      threejs/lessons/kr/threejs-tips.md
  9. 2 2
      threejs/lessons/kr/threejs-voxel-geometry.md
  10. 1 1
      threejs/lessons/resources/index.css
  11. 4 4
      threejs/lessons/resources/lesson.css
  12. 2 2
      threejs/lessons/resources/moon-orbit.html
  13. 1 1
      threejs/lessons/resources/threejs-align-html-elements-to-3d.js
  14. 2 2
      threejs/lessons/ru/threejs-multiple-scenes.md
  15. 4 4
      threejs/lessons/ru/threejs-offscreencanvas.md
  16. 6 6
      threejs/lessons/ru/threejs-tips.md
  17. 4 4
      threejs/lessons/threejs-align-html-elements-to-3d.md
  18. 2 2
      threejs/lessons/threejs-backgrounds.md
  19. 4 4
      threejs/lessons/threejs-multiple-scenes.md
  20. 4 4
      threejs/lessons/threejs-offscreencanvas.md
  21. 6 6
      threejs/lessons/threejs-tips.md
  22. 2 2
      threejs/lessons/threejs-voxel-geometry.md
  23. 2 2
      threejs/lessons/threejs-webvr.md
  24. 2 2
      threejs/resources/lesson-helper.css
  25. 2 2
      threejs/resources/lessons-helper.js
  26. 10 10
      threejs/resources/threejs-tutorials.css
  27. 4 3
      threejs/threejs-align-html-elements-to-3d-globe-too-many-labels.html
  28. 4 3
      threejs/threejs-align-html-elements-to-3d-globe.html
  29. 4 3
      threejs/threejs-align-html-to-3d-w-hiding.html
  30. 4 3
      threejs/threejs-align-html-to-3d-w-sorting.html
  31. 4 3
      threejs/threejs-align-html-to-3d.html
  32. 4 3
      threejs/threejs-background-css.html
  33. 4 3
      threejs/threejs-background-cubemap.html
  34. 4 3
      threejs/threejs-background-equirectangularmap.html
  35. 4 3
      threejs/threejs-background-scene-background-fixed-aspect.html
  36. 4 3
      threejs/threejs-background-scene-background.html
  37. 4 3
      threejs/threejs-background-separate-scene-bad-aspect.html
  38. 4 3
      threejs/threejs-background-separate-scene.html
  39. 4 3
      threejs/threejs-billboard-labels-w-sprites-adjust-height.html
  40. 4 3
      threejs/threejs-billboard-labels-w-sprites.html
  41. 4 3
      threejs/threejs-billboard-trees-no-billboards.html
  42. 4 3
      threejs/threejs-billboard-trees-static-billboards.html
  43. 4 3
      threejs/threejs-canvas-textured-cube-qix.html
  44. 4 3
      threejs/threejs-canvas-textured-cube.html
  45. 4 3
      threejs/threejs-canvas-textured-labels-one-canvas.html
  46. 4 3
      threejs/threejs-canvas-textured-labels-scale-to-fit.html
  47. 4 3
      threejs/threejs-canvas-textured-labels.html
  48. 4 3
      threejs/threejs-cleanup-loaded-files.html
  49. 4 3
      threejs/threejs-cleanup-simple.html
  50. 4 3
      threejs/threejs-custom-buffergeometry-cube-indexed.html
  51. 4 3
      threejs/threejs-custom-buffergeometry-cube-typedarrays.html
  52. 4 3
      threejs/threejs-custom-buffergeometry-cube.html
  53. 4 3
      threejs/threejs-custom-buffergeometry-dynamic.html
  54. 4 3
      threejs/threejs-custom-geometry-cube-face-colors.html
  55. 4 3
      threejs/threejs-custom-geometry-cube-face-normals.html
  56. 4 3
      threejs/threejs-custom-geometry-cube-texcoords.html
  57. 4 3
      threejs/threejs-custom-geometry-cube-vertex-colors.html
  58. 4 3
      threejs/threejs-custom-geometry-cube-vertex-normals.html
  59. 4 3
      threejs/threejs-custom-geometry-cube.html
  60. 4 3
      threejs/threejs-custom-geometry-heightmap.html
  61. 4 3
      threejs/threejs-debug-js-clearing-logger.html
  62. 4 3
      threejs/threejs-debug-js-html-elements.html
  63. 4 3
      threejs/threejs-debug-js-params.html
  64. 4 3
      threejs/threejs-fog-gui.html
  65. 4 3
      threejs/threejs-fog.html
  66. 4 3
      threejs/threejs-indexed-textures-picking-and-highlighting.html
  67. 5 3
      threejs/threejs-indexed-textures-picking-debounced.html
  68. 4 3
      threejs/threejs-indexed-textures-picking.html
  69. 4 3
      threejs/threejs-indexed-textures-random-colors.html
  70. 4 3
      threejs/threejs-lots-of-objects-animated.html
  71. 4 3
      threejs/threejs-lots-of-objects-merged-vertexcolors.html
  72. 4 3
      threejs/threejs-lots-of-objects-merged.html
  73. 4 3
      threejs/threejs-lots-of-objects-morphtargets-w-colors.html
  74. 4 3
      threejs/threejs-lots-of-objects-morphtargets.html
  75. 4 3
      threejs/threejs-lots-of-objects-multiple-data-sets.html
  76. 4 3
      threejs/threejs-lots-of-objects-slow.html
  77. 2 2
      threejs/threejs-multiple-scenes-controls.html
  78. 2 2
      threejs/threejs-multiple-scenes-generic.html
  79. 2 2
      threejs/threejs-multiple-scenes-selector.html
  80. 2 2
      threejs/threejs-multiple-scenes-v1.html
  81. 2 2
      threejs/threejs-multiple-scenes-v2.html
  82. 2 2
      threejs/threejs-multiple-scenes-v3.html
  83. 4 3
      threejs/threejs-offscreencanvas-w-fallback.html
  84. 4 3
      threejs/threejs-offscreencanvas-w-orbitcontrols.html
  85. 4 3
      threejs/threejs-offscreencanvas-w-picking.html
  86. 6 5
      threejs/threejs-offscreencanvas.html
  87. 4 3
      threejs/threejs-picking-gpu.html
  88. 4 3
      threejs/threejs-picking-raycaster-complex-geo.html
  89. 4 3
      threejs/threejs-picking-raycaster-transparency.html
  90. 4 3
      threejs/threejs-picking-raycaster.html
  91. 3 3
      threejs/threejs-postprocessing-adobe-lut-to-png-converter.html
  92. 4 3
      threejs/threejs-postprocessing-custom.html
  93. 4 3
      threejs/threejs-postprocessing-gui.html
  94. 4 3
      threejs/threejs-postprocessing.html
  95. 4 3
      threejs/threejs-primitives-text.html
  96. 4 3
      threejs/threejs-primitives.html
  97. 4 3
      threejs/threejs-render-on-demand-w-damping.html
  98. 4 3
      threejs/threejs-render-on-demand-w-gui.html
  99. 4 3
      threejs/threejs-render-on-demand.html
  100. 4 3
      threejs/threejs-render-target.html

+ 1 - 1
threejs/3dlut-base-cube-maker.html

@@ -10,7 +10,7 @@ canvas {
   image-rendering: pixelated;
   image-rendering: pixelated;
 }
 }
 #cube {
 #cube {
-  max-width: calc(100vw - 20px);
+  max-width: calc(100% - 20px);
   overflow: auto;
   overflow: auto;
 }
 }
 </style>
 </style>

+ 1 - 1
threejs/gpw-data-viewer.html

@@ -5,7 +5,7 @@
 <title>gpw data viewer</title>
 <title>gpw data viewer</title>
 <style>
 <style>
 canvas {
 canvas {
-  max-width: calc(100vw - 16px);
+  max-width: calc(100% - 16px);
 }
 }
 </style>
 </style>
 </head>
 </head>

+ 6 - 6
threejs/lessons/ja/threejs-tips.md

@@ -289,8 +289,8 @@ body {
     margin: 0;
     margin: 0;
 }
 }
 #c {
 #c {
-    width: 100vw;
-    height: 100vh;
+    width: 100%;
+    height: 100%;
     display: block;
     display: block;
 +    position: fixed;
 +    position: fixed;
 +    left: 0;
 +    left: 0;
@@ -302,8 +302,8 @@ body {
 +  font-size: 7vw;
 +  font-size: 7vw;
 +  font-family: sans-serif;
 +  font-family: sans-serif;
 +  text-align: center;
 +  text-align: center;
-+  width: 100vw;
-+  height: 100vh;
++  width: 100%;
++  height: 100%;
 +  display: flex;
 +  display: flex;
 +  justify-content: center;
 +  justify-content: center;
 +  align-items: center;
 +  align-items: center;
@@ -358,8 +358,8 @@ body {
 ```
 ```
 #background {
 #background {
     position: fixed;
     position: fixed;
-    width: 100vw;
-    height: 100vh;
+    width: 100%;
+    height: 100%;
     left: 0;
     left: 0;
     top: 0;
     top: 0;
     z-index: -1;
     z-index: -1;

+ 4 - 4
threejs/lessons/kr/threejs-align-html-elements-to-3d.md

@@ -52,16 +52,16 @@ controls.update();
 
 
 ```css
 ```css
 #c {
 #c {
--    width: 100vw;
--    height: 100vh;
+-    width: 100%;
+-    height: 100%;
 +    width: 100%;  /* id=container가 사이즈를 결정하도록 합니다. */
 +    width: 100%;  /* id=container가 사이즈를 결정하도록 합니다. */
 +    height: 100%;
 +    height: 100%;
     display: block;
     display: block;
 }
 }
 +#container {
 +#container {
 +  position: relative;  /* 자식이 이 요소를 기준 삼도록 합니다. */
 +  position: relative;  /* 자식이 이 요소를 기준 삼도록 합니다. */
-+  width: 100vw;
-+  height: 100vh;
++  width: 100%;
++  height: 100%;
 +  overflow: hidden;
 +  overflow: hidden;
 +}
 +}
 +#labels {
 +#labels {

+ 2 - 2
threejs/lessons/kr/threejs-backgrounds.md

@@ -15,8 +15,8 @@ body {
     margin: 0;
     margin: 0;
 }
 }
 #c {
 #c {
-    width: 100vw;
-    height: 100vh;
+    width: 100%;
+    height: 100%;
     display: block;
     display: block;
 +    background: url(resources/images/daikanyama.jpg) no-repeat center center;
 +    background: url(resources/images/daikanyama.jpg) no-repeat center center;
 +    background-size: cover;
 +    background-size: cover;

+ 4 - 4
threejs/lessons/kr/threejs-multiple-scenes.md

@@ -54,8 +54,8 @@ TOC: 다중 캔버스, 다중 장면 만들기
   position: fixed;
   position: fixed;
   left: 0;
   left: 0;
   top: 0;
   top: 0;
-  width: 100vw;
-  height: 100vh;
+  width: 100%;
+  height: 100%;
   display: block;
   display: block;
   z-index: -1;
   z-index: -1;
 }
 }
@@ -576,8 +576,8 @@ CSS도 바꿔줍니다.
 -  position: absolute;
 -  position: absolute;
 -  left: 0;
 -  left: 0;
 -  top: 0;
 -  top: 0;
--  width: 100vw;
--  height: 100vh;
+-  width: 100%;
+-  height: 100%;
 -  display: block;
 -  display: block;
 -  z-index: -1;
 -  z-index: -1;
 -}
 -}

+ 4 - 4
threejs/lessons/kr/threejs-offscreencanvas.md

@@ -175,8 +175,8 @@ worker.postMessage({ type: 'main', canvas: offscreen }, [ offscreen ]);
 ```css
 ```css
 #noOffscreenCanvas {
 #noOffscreenCanvas {
     display: flex;
     display: flex;
-    width: 100vw;
-    height: 100vh;
+    width: 100%;
+    height: 100%;
     align-items: center;
     align-items: center;
     justify-content: center;
     justify-content: center;
     background: red;
     background: red;
@@ -308,8 +308,8 @@ self.onmessage = function(e) {
 ```css
 ```css
 -#noOffscreenCanvas {
 -#noOffscreenCanvas {
 -    display: flex;
 -    display: flex;
--    width: 100vw;
--    height: 100vh;
+-    width: 100%;
+-    height: 100%;
 -    align-items: center;
 -    align-items: center;
 -    justify-content: center;
 -    justify-content: center;
 -    background: red;
 -    background: red;

+ 6 - 6
threejs/lessons/kr/threejs-tips.md

@@ -280,8 +280,8 @@ body {
     margin: 0;
     margin: 0;
 }
 }
 #c {
 #c {
-    width: 100vw;
-    height: 100vh;
+    width: 100%;
+    height: 100%;
     display: block;
     display: block;
 +    position: fixed;
 +    position: fixed;
 +    left: 0;
 +    left: 0;
@@ -293,8 +293,8 @@ body {
 +  font-size: 7vw;
 +  font-size: 7vw;
 +  font-family: sans-serif;
 +  font-family: sans-serif;
 +  text-align: center;
 +  text-align: center;
-+  width: 100vw;
-+  height: 100vh;
++  width: 100%;
++  height: 100%;
 +  display: flex;
 +  display: flex;
 +  justify-content: center;
 +  justify-content: center;
 +  align-items: center;
 +  align-items: center;
@@ -348,8 +348,8 @@ body {
 ```css
 ```css
 #background {
 #background {
     position: fixed;
     position: fixed;
-    width: 100vw;
-    height: 100vh;
+    width: 100%;
+    height: 100%;
     left: 0;
     left: 0;
     top: 0;
     top: 0;
     z-index: -1;
     z-index: -1;

+ 2 - 2
threejs/lessons/kr/threejs-voxel-geometry.md

@@ -842,8 +842,8 @@ body {
     margin: 0;
     margin: 0;
 }
 }
 #c {
 #c {
-    width: 100vw;
-    height: 100vh;
+    width: 100%;
+    height: 100%;
     display: block;
     display: block;
 }
 }
 +#ui {
 +#ui {

+ 1 - 1
threejs/lessons/resources/index.css

@@ -8,7 +8,7 @@ body {
 iframe.background {
 iframe.background {
     position: fixed;
     position: fixed;
     width: 100%;
     width: 100%;
-    height: 100vh;
+    height: 100%;
     border: none;
     border: none;
     top: 0;
     top: 0;
     z-index: -1000;
     z-index: -1000;

+ 4 - 4
threejs/lessons/resources/lesson.css

@@ -85,7 +85,7 @@ div[data-diagram] {
   top: 0;
   top: 0;
   left: 0;
   left: 0;
   width: 100%;
   width: 100%;
-  height: 100vh;
+  height: 100%;
   z-index: -100;
   z-index: -100;
 }
 }
 .border {
 .border {
@@ -206,8 +206,8 @@ div[data-diagram] {
     position: fixed !important;
     position: fixed !important;
     left: 0;
     left: 0;
     top: 0;
     top: 0;
-    width: 100vw !important;
-    height: 100vh !important;
+    width: 100% !important;
+    height: 100% !important;
     z-index: 100;
     z-index: 100;
 }
 }
 .lesson-main>blockquote {
 .lesson-main>blockquote {
@@ -334,7 +334,7 @@ iframe {
 }
 }
 
 
 iframe.body {
 iframe.body {
-  height: 100vh;
+  height: 100%;
 }
 }
 iframe.threejs_example, iframe.threejs_diagram {
 iframe.threejs_example, iframe.threejs_diagram {
   border: none;
   border: none;

+ 2 - 2
threejs/lessons/resources/moon-orbit.html

@@ -9,8 +9,8 @@ body {
   background: white;
   background: white;
 }
 }
 canvas {
 canvas {
-  width: 100vw;
-  height: 100vh;
+  width: 100%;
+  height: 100%;
   display: block;
   display: block;
 }
 }
 p {
 p {

+ 1 - 1
threejs/lessons/resources/threejs-align-html-elements-to-3d.js

@@ -139,7 +139,7 @@ import {GUI} from '../../../3rdparty/dat.gui.module.js';
         };
         };
 
 
         const darkMatcher = window.matchMedia('(prefers-color-scheme: dark)');
         const darkMatcher = window.matchMedia('(prefers-color-scheme: dark)');
-        darkMatcher.addListener(render);
+        darkMatcher.addEventListener('change', render);
 
 
         function render() {
         function render() {
           const {rotation} = settings;
           const {rotation} = settings;

+ 2 - 2
threejs/lessons/ru/threejs-multiple-scenes.md

@@ -59,8 +59,8 @@ TOC: Несколько холстов, несколько сцен
   position: fixed;
   position: fixed;
   left: 0;
   left: 0;
   top: 0;
   top: 0;
-  width: 100vw;
-  height: 100vh;
+  width: 100%;
+  height: 100%;
   display: block;
   display: block;
   z-index: -1;
   z-index: -1;
 }
 }

+ 4 - 4
threejs/lessons/ru/threejs-offscreencanvas.md

@@ -201,8 +201,8 @@ worker.postMessage({type: 'main', canvas: offscreen}, [offscreen]);
 ```css
 ```css
 #noOffscreenCanvas {
 #noOffscreenCanvas {
     display: flex;
     display: flex;
-    width: 100vw;
-    height: 100vh;
+    width: 100%;
+    height: 100%;
     align-items: center;
     align-items: center;
     justify-content: center;
     justify-content: center;
     background: red;
     background: red;
@@ -345,8 +345,8 @@ self.onmessage = function(e) {
 ```css
 ```css
 -#noOffscreenCanvas {
 -#noOffscreenCanvas {
 -    display: flex;
 -    display: flex;
--    width: 100vw;
--    height: 100vh;
+-    width: 100%;
+-    height: 100%;
 -    align-items: center;
 -    align-items: center;
 -    justify-content: center;
 -    justify-content: center;
 -    background: red;
 -    background: red;

+ 6 - 6
threejs/lessons/ru/threejs-tips.md

@@ -305,8 +305,8 @@ body {
     margin: 0;
     margin: 0;
 }
 }
 #c {
 #c {
-    width: 100vw;
-    height: 100vh;
+    width: 100%;
+    height: 100%;
     display: block;
     display: block;
 +    position: fixed;
 +    position: fixed;
 +    left: 0;
 +    left: 0;
@@ -318,8 +318,8 @@ body {
 +  font-size: 7vw;
 +  font-size: 7vw;
 +  font-family: sans-serif;
 +  font-family: sans-serif;
 +  text-align: center;
 +  text-align: center;
-+  width: 100vw;
-+  height: 100vh;
++  width: 100%;
++  height: 100%;
 +  display: flex;
 +  display: flex;
 +  justify-content: center;
 +  justify-content: center;
 +  align-items: center;
 +  align-items: center;
@@ -382,8 +382,8 @@ three.js не конфликтует с JavaScript, выполняющим др
 ```
 ```
 #background {
 #background {
     position: fixed;
     position: fixed;
-    width: 100vw;
-    height: 100vh;
+    width: 100%;
+    height: 100%;
     left: 0;
     left: 0;
     top: 0;
     top: 0;
     z-index: -1;
     z-index: -1;

+ 4 - 4
threejs/lessons/threejs-align-html-elements-to-3d.md

@@ -62,16 +62,16 @@ parent container we can make them overlap with this CSS
 
 
 ```css
 ```css
 #c {
 #c {
--    width: 100vw;
--    height: 100vh;
+-    width: 100%;
+-    height: 100%;
 +    width: 100%;  /* let our container decide our size */
 +    width: 100%;  /* let our container decide our size */
 +    height: 100%;
 +    height: 100%;
     display: block;
     display: block;
 }
 }
 +#container {
 +#container {
 +  position: relative;  /* makes this the origin of its children */
 +  position: relative;  /* makes this the origin of its children */
-+  width: 100vw;
-+  height: 100vh;
++  width: 100%;
++  height: 100%;
 +  overflow: hidden;
 +  overflow: hidden;
 +}
 +}
 +#labels {
 +#labels {

+ 2 - 2
threejs/lessons/threejs-backgrounds.md

@@ -16,8 +16,8 @@ body {
     margin: 0;
     margin: 0;
 }
 }
 #c {
 #c {
-    width: 100vw;
-    height: 100vh;
+    width: 100%;
+    height: 100%;
     display: block;
     display: block;
 +    background: url(resources/images/daikanyama.jpg) no-repeat center center;
 +    background: url(resources/images/daikanyama.jpg) no-repeat center center;
 +    background-size: cover;
 +    background-size: cover;

+ 4 - 4
threejs/lessons/threejs-multiple-scenes.md

@@ -57,8 +57,8 @@ Then we can setup the CSS maybe something like this
   position: fixed;
   position: fixed;
   left: 0;
   left: 0;
   top: 0;
   top: 0;
-  width: 100vw;
-  height: 100vh;
+  width: 100%;
+  height: 100%;
   display: block;
   display: block;
   z-index: -1;
   z-index: -1;
 }
 }
@@ -562,8 +562,8 @@ then we'll change the CSS
 -  position: absolute;
 -  position: absolute;
 -  left: 0;
 -  left: 0;
 -  top: 0;
 -  top: 0;
--  width: 100vw;
--  height: 100vh;
+-  width: 100%;
+-  height: 100%;
 -  display: block;
 -  display: block;
 -  z-index: -1;
 -  z-index: -1;
 -}
 -}

+ 4 - 4
threejs/lessons/threejs-offscreencanvas.md

@@ -215,8 +215,8 @@ and some CSS for that
 ```css
 ```css
 #noOffscreenCanvas {
 #noOffscreenCanvas {
     display: flex;
     display: flex;
-    width: 100vw;
-    height: 100vh;
+    width: 100%;
+    height: 100%;
     align-items: center;
     align-items: center;
     justify-content: center;
     justify-content: center;
     background: red;
     background: red;
@@ -364,8 +364,8 @@ and some CSS for that
 ```css
 ```css
 -#noOffscreenCanvas {
 -#noOffscreenCanvas {
 -    display: flex;
 -    display: flex;
--    width: 100vw;
--    height: 100vh;
+-    width: 100%;
+-    height: 100%;
 -    align-items: center;
 -    align-items: center;
 -    justify-content: center;
 -    justify-content: center;
 -    background: red;
 -    background: red;

+ 6 - 6
threejs/lessons/threejs-tips.md

@@ -310,8 +310,8 @@ body {
     margin: 0;
     margin: 0;
 }
 }
 #c {
 #c {
-    width: 100vw;
-    height: 100vh;
+    width: 100%;
+    height: 100%;
     display: block;
     display: block;
 +    position: fixed;
 +    position: fixed;
 +    left: 0;
 +    left: 0;
@@ -323,8 +323,8 @@ body {
 +  font-size: 7vw;
 +  font-size: 7vw;
 +  font-family: sans-serif;
 +  font-family: sans-serif;
 +  text-align: center;
 +  text-align: center;
-+  width: 100vw;
-+  height: 100vh;
++  width: 100%;
++  height: 100%;
 +  display: flex;
 +  display: flex;
 +  justify-content: center;
 +  justify-content: center;
 +  align-items: center;
 +  align-items: center;
@@ -386,8 +386,8 @@ a border by default.
 ```
 ```
 #background {
 #background {
     position: fixed;
     position: fixed;
-    width: 100vw;
-    height: 100vh;
+    width: 100%;
+    height: 100%;
     left: 0;
     left: 0;
     top: 0;
     top: 0;
     z-index: -1;
     z-index: -1;

+ 2 - 2
threejs/lessons/threejs-voxel-geometry.md

@@ -897,8 +897,8 @@ body {
     margin: 0;
     margin: 0;
 }
 }
 #c {
 #c {
-    width: 100vw;
-    height: 100vh;
+    width: 100%;
+    height: 100%;
     display: block;
     display: block;
 }
 }
 +#ui {
 +#ui {

+ 2 - 2
threejs/lessons/threejs-webvr.md

@@ -301,8 +301,8 @@ body {
     margin: 0;
     margin: 0;
 }
 }
 #c {
 #c {
-    width: 100vw;
-    height: 100vh;
+    width: 100%;
+    height: 100%;
     display: block;
     display: block;
 }
 }
 +.mode {
 +.mode {

+ 2 - 2
threejs/resources/lesson-helper.css

@@ -2,8 +2,8 @@
   position: absolute;
   position: absolute;
   left: 0;
   left: 0;
   top: 0;
   top: 0;
-  width: 100vw;
-  height: 100vh;
+  width: 100%;
+  height: 100%;
   background: red;
   background: red;
   color: white;
   color: white;
   font-family: monospace;
   font-family: monospace;

+ 2 - 2
threejs/resources/lessons-helper.js

@@ -97,8 +97,8 @@
           left: 0;
           left: 0;
           top: 0;
           top: 0;
           background-color: #DEF;
           background-color: #DEF;
-          width: 100vw;
-          height: 100vh;
+          width: 100%;
+          height: 100%;
           display: flex;
           display: flex;
           flex-flow: column;
           flex-flow: column;
           justify-content: center;
           justify-content: center;

+ 10 - 10
threejs/resources/threejs-tutorials.css

@@ -78,11 +78,11 @@ body {
 /* styles to apply if in an iframe */
 /* styles to apply if in an iframe */
 
 
 html.iframe {
 html.iframe {
-    height: 100vh;
+    height: 100%;
 }
 }
 body.iframe {
 body.iframe {
-  width: 100vw;
-  height: 100vh;
+  width: 100%;
+  height: 100%;
   margin: 0;
   margin: 0;
   overflow: hidden;
   overflow: hidden;
 }
 }
@@ -91,8 +91,8 @@ body.iframe {
   display: none;
   display: none;
 }
 }
 .iframe .divcavnas {
 .iframe .divcavnas {
-  width: 100vw;
-  height: 100vh;
+  width: 100%;
+  height: 100%;
 }
 }
 .iframe>#example {
 .iframe>#example {
   width: 100%;
   width: 100%;
@@ -130,8 +130,8 @@ body.iframe {
     display: flex;
     display: flex;
     justify-content: center;
     justify-content: center;
     align-items: center;
     align-items: center;
-    width: 100vw;
-    height: 100vh;
+    width: 100%;
+    height: 100%;
     position: absolute;
     position: absolute;
     left: 0;
     left: 0;
     top: 0;
     top: 0;
@@ -152,11 +152,11 @@ body.iframe {
     max-width: 300px !important;
     max-width: 300px !important;
   }
   }
   canvas {
   canvas {
-    width: 100vw;
+    width: 100%;
   }
   }
   .iframe canvas {
   .iframe canvas {
-    width: 100vw;
-    height: 100vh;
+    width: 100%;
+    height: 100%;
     border: none;
     border: none;
   }
   }
   #uiContainer {
   #uiContainer {

+ 4 - 3
threejs/threejs-align-html-elements-to-3d-globe-too-many-labels.html

@@ -6,7 +6,8 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Align HTML Elements to 3D Globe</title>
     <title>Three.js - Align HTML Elements to 3D Globe</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
         font-family: sans-serif;
         font-family: sans-serif;
     }
     }
@@ -17,8 +18,8 @@
     }
     }
     #container {
     #container {
       position: relative;  /* makes this the origin of its children */
       position: relative;  /* makes this the origin of its children */
-      width: 100vw;
-      height: 100vh;
+      width: 100%;
+      height: 100%;
       overflow: hidden;
       overflow: hidden;
     }
     }
     #labels {
     #labels {

+ 4 - 3
threejs/threejs-align-html-elements-to-3d-globe.html

@@ -6,9 +6,10 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Align HTML Elements to 3D Globe</title>
     <title>Three.js - Align HTML Elements to 3D Globe</title>
     <style>
     <style>
-    body {
+    html, body {
         margin: 0;
         margin: 0;
         font-family: sans-serif;
         font-family: sans-serif;
+        height: 100%;
     }
     }
     #c {
     #c {
         width: 100%;  /* let our container decide our size */
         width: 100%;  /* let our container decide our size */
@@ -17,8 +18,8 @@
     }
     }
     #container {
     #container {
       position: relative;  /* makes this the origin of its children */
       position: relative;  /* makes this the origin of its children */
-      width: 100vw;
-      height: 100vh;
+      width: 100%;
+      height: 100%;
       overflow: hidden;
       overflow: hidden;
     }
     }
     #labels {
     #labels {

+ 4 - 3
threejs/threejs-align-html-to-3d-w-hiding.html

@@ -6,8 +6,9 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Align HTML Elements w/hiding</title>
     <title>Three.js - Align HTML Elements w/hiding</title>
     <style>
     <style>
-    body {
+    html, body {
         margin: 0;
         margin: 0;
+        height: 100%;
     }
     }
     #c {
     #c {
         width: 100%;  /* let our container decide our size */
         width: 100%;  /* let our container decide our size */
@@ -16,8 +17,8 @@
     }
     }
     #container {
     #container {
       position: relative;  /* makes this the origin of its children */
       position: relative;  /* makes this the origin of its children */
-      width: 100vw;
-      height: 100vh;
+      width: 100%;
+      height: 100%;
       overflow: hidden;
       overflow: hidden;
     }
     }
     #labels {
     #labels {

+ 4 - 3
threejs/threejs-align-html-to-3d-w-sorting.html

@@ -6,7 +6,8 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Align HTML Elements w/hiding</title>
     <title>Three.js - Align HTML Elements w/hiding</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
@@ -16,8 +17,8 @@
     }
     }
     #container {
     #container {
       position: relative;  /* makes this the origin of its children */
       position: relative;  /* makes this the origin of its children */
-      width: 100vw;
-      height: 100vh;
+      width: 100%;
+      height: 100%;
       overflow: hidden;
       overflow: hidden;
     }
     }
     #labels {
     #labels {

+ 4 - 3
threejs/threejs-align-html-to-3d.html

@@ -6,7 +6,8 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Align HTML Elements to 3D</title>
     <title>Three.js - Align HTML Elements to 3D</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
@@ -16,8 +17,8 @@
     }
     }
     #container {
     #container {
       position: relative;  /* makes this the origin of its children */
       position: relative;  /* makes this the origin of its children */
-      width: 100vw;
-      height: 100vh;
+      width: 100%;
+      height: 100%;
       overflow: hidden;
       overflow: hidden;
     }
     }
     #labels {
     #labels {

+ 4 - 3
threejs/threejs-background-css.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Background CSS</title>
     <title>Three.js - Background CSS</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
         background: url(resources/images/daikanyama.jpg) no-repeat center center ;
         background: url(resources/images/daikanyama.jpg) no-repeat center center ;
         background-size: cover;
         background-size: cover;

+ 4 - 3
threejs/threejs-background-cubemap.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Background Cubemap</title>
     <title>Three.js - Background Cubemap</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-background-equirectangularmap.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Background Cubemap</title>
     <title>Three.js - Background Cubemap</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-background-scene-background-fixed-aspect.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Background - Scene Background Fixed Aspect</title>
     <title>Three.js - Background - Scene Background Fixed Aspect</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-background-scene-background.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Background - Scene Background</title>
     <title>Three.js - Background - Scene Background</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-background-separate-scene-bad-aspect.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Background bad aspect</title>
     <title>Three.js - Background bad aspect</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-background-separate-scene.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Background CSS</title>
     <title>Three.js - Background CSS</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-billboard-labels-w-sprites-adjust-height.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Billboard Labels w/Sprites height adjusted</title>
     <title>Three.js - Billboard Labels w/Sprites height adjusted</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-billboard-labels-w-sprites.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Billboard Labels w/Sprites</title>
     <title>Three.js - Billboard Labels w/Sprites</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-billboard-trees-no-billboards.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Billboard Trees No Billboards</title>
     <title>Three.js - Billboard Trees No Billboards</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-billboard-trees-static-billboards.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Billboard Trees Static Billboards</title>
     <title>Three.js - Billboard Trees Static Billboards</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-canvas-textured-cube-qix.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Canvas Textured Cube</title>
     <title>Three.js - Canvas Textured Cube</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-canvas-textured-cube.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Canvas Textured Cube</title>
     <title>Three.js - Canvas Textured Cube</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-canvas-textured-labels-one-canvas.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Canvas Textured Labels One Canvas</title>
     <title>Three.js - Canvas Textured Labels One Canvas</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-canvas-textured-labels-scale-to-fit.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Canvas Textured Labels Scale to Fit</title>
     <title>Three.js - Canvas Textured Labels Scale to Fit</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-canvas-textured-labels.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Canvas Textured Labels</title>
     <title>Three.js - Canvas Textured Labels</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-cleanup-loaded-files.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Cleanup Loaded Files</title>
     <title>Three.js - Cleanup Loaded Files</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     #root {
     #root {

+ 4 - 3
threejs/threejs-cleanup-simple.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Cleanup</title>
     <title>Three.js - Cleanup</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     #root {
     #root {

+ 4 - 3
threejs/threejs-custom-buffergeometry-cube-indexed.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Custom BufferGeometry - Indexed</title>
     <title>Three.js - Custom BufferGeometry - Indexed</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-custom-buffergeometry-cube-typedarrays.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Custom BufferGeometry - TypedArrays</title>
     <title>Three.js - Custom BufferGeometry - TypedArrays</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-custom-buffergeometry-cube.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Custom BufferGeometry - Cube</title>
     <title>Three.js - Custom BufferGeometry - Cube</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-custom-buffergeometry-dynamic.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Custom BufferGeometry - Dynamic</title>
     <title>Three.js - Custom BufferGeometry - Dynamic</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-custom-geometry-cube-face-colors.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Custom Geometry - Cube - Face Colors</title>
     <title>Three.js - Custom Geometry - Cube - Face Colors</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-custom-geometry-cube-face-normals.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Custom Geometry - Cube - face normals</title>
     <title>Three.js - Custom Geometry - Cube - face normals</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-custom-geometry-cube-texcoords.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Custom Geometry - Cube - Texture Coordinates</title>
     <title>Three.js - Custom Geometry - Cube - Texture Coordinates</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-custom-geometry-cube-vertex-colors.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Custom Geometry - Cube - Vertex Colors</title>
     <title>Three.js - Custom Geometry - Cube - Vertex Colors</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-custom-geometry-cube-vertex-normals.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Custom Geometry - Cube - Vertex Normals</title>
     <title>Three.js - Custom Geometry - Cube - Vertex Normals</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-custom-geometry-cube.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Custom Geometry - Cube</title>
     <title>Three.js - Custom Geometry - Cube</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-custom-geometry-heightmap.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Custom Geometry - Heightmap</title>
     <title>Three.js - Custom Geometry - Heightmap</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-debug-js-clearing-logger.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Debug - Clearing Logger</title>
     <title>Three.js - Debug - Clearing Logger</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     #debug {
     #debug {

+ 4 - 3
threejs/threejs-debug-js-html-elements.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Debug - HTML Elements</title>
     <title>Three.js - Debug - HTML Elements</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     #debug {
     #debug {

+ 4 - 3
threejs/threejs-debug-js-params.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Debug - Params</title>
     <title>Three.js - Debug - Params</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     #debug {
     #debug {

+ 4 - 3
threejs/threejs-fog-gui.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Fog w/GUI</title>
     <title>Three.js - Fog w/GUI</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-fog.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Fog</title>
     <title>Three.js - Fog</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-indexed-textures-picking-and-highlighting.html

@@ -6,7 +6,8 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Indexed Textures - Picking and Highlighting</title>
     <title>Three.js - Indexed Textures - Picking and Highlighting</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
         font-family: sans-serif;
         font-family: sans-serif;
     }
     }
@@ -17,8 +18,8 @@
     }
     }
     #container {
     #container {
       position: relative;  /* makes this the origin of its children */
       position: relative;  /* makes this the origin of its children */
-      width: 100vw;
-      height: 100vh;
+      width: 100%;
+      height: 100%;
       overflow: hidden;
       overflow: hidden;
     }
     }
     #labels {
     #labels {

+ 5 - 3
threejs/threejs-indexed-textures-picking-debounced.html

@@ -6,7 +6,9 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Indexed Textures - Picking and Highlighting - Debounced</title>
     <title>Three.js - Indexed Textures - Picking and Highlighting - Debounced</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
+        height: 100%;
         margin: 0;
         margin: 0;
         font-family: sans-serif;
         font-family: sans-serif;
     }
     }
@@ -17,8 +19,8 @@
     }
     }
     #container {
     #container {
       position: relative;  /* makes this the origin of its children */
       position: relative;  /* makes this the origin of its children */
-      width: 100vw;
-      height: 100vh;
+      width: 100%;
+      height: 100%;
       overflow: hidden;
       overflow: hidden;
     }
     }
     #labels {
     #labels {

+ 4 - 3
threejs/threejs-indexed-textures-picking.html

@@ -6,7 +6,8 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Indexed Textures - Picking</title>
     <title>Three.js - Indexed Textures - Picking</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
         font-family: sans-serif;
         font-family: sans-serif;
     }
     }
@@ -17,8 +18,8 @@
     }
     }
     #container {
     #container {
       position: relative;  /* makes this the origin of its children */
       position: relative;  /* makes this the origin of its children */
-      width: 100vw;
-      height: 100vh;
+      width: 100%;
+      height: 100%;
       overflow: hidden;
       overflow: hidden;
     }
     }
     #labels {
     #labels {

+ 4 - 3
threejs/threejs-indexed-textures-random-colors.html

@@ -6,7 +6,8 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Indexed Textures - Random Colors</title>
     <title>Three.js - Indexed Textures - Random Colors</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
         font-family: sans-serif;
         font-family: sans-serif;
     }
     }
@@ -17,8 +18,8 @@
     }
     }
     #container {
     #container {
       position: relative;  /* makes this the origin of its children */
       position: relative;  /* makes this the origin of its children */
-      width: 100vw;
-      height: 100vh;
+      width: 100%;
+      height: 100%;
       overflow: hidden;
       overflow: hidden;
     }
     }
     #labels {
     #labels {

+ 4 - 3
threejs/threejs-lots-of-objects-animated.html

@@ -6,13 +6,14 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Lots of Objects - Animated</title>
     <title>Three.js - Lots of Objects - Animated</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
         color: white;
         color: white;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     #ui {
     #ui {

+ 4 - 3
threejs/threejs-lots-of-objects-merged-vertexcolors.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Lots of Objects - Merged w/vertex colors</title>
     <title>Three.js - Lots of Objects - Merged w/vertex colors</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-lots-of-objects-merged.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Lots of Objects - Merged</title>
     <title>Three.js - Lots of Objects - Merged</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-lots-of-objects-morphtargets-w-colors.html

@@ -6,13 +6,14 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Lots of Objects - MorphTargets w/colors</title>
     <title>Three.js - Lots of Objects - MorphTargets w/colors</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
         color: white;
         color: white;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     #ui {
     #ui {

+ 4 - 3
threejs/threejs-lots-of-objects-morphtargets.html

@@ -6,13 +6,14 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Lots of Objects - Morphtargets</title>
     <title>Three.js - Lots of Objects - Morphtargets</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
         color: white;
         color: white;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     #ui {
     #ui {

+ 4 - 3
threejs/threejs-lots-of-objects-multiple-data-sets.html

@@ -6,13 +6,14 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Lots of Objects - Multiple Datasets</title>
     <title>Three.js - Lots of Objects - Multiple Datasets</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
         color: white;
         color: white;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     #ui {
     #ui {

+ 4 - 3
threejs/threejs-lots-of-objects-slow.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Lots of Objects - Slow</title>
     <title>Three.js - Lots of Objects - Slow</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 2 - 2
threejs/threejs-multiple-scenes-controls.html

@@ -10,8 +10,8 @@
       position: absolute;
       position: absolute;
       left: 0;
       left: 0;
       top: 0;
       top: 0;
-      width: 100vw;
-      height: 100vh;
+      width: 100%;
+      height: 100%;
       display: block;
       display: block;
       z-index: -1;
       z-index: -1;
     }
     }

+ 2 - 2
threejs/threejs-multiple-scenes-generic.html

@@ -10,8 +10,8 @@
       position: absolute;
       position: absolute;
       left: 0;
       left: 0;
       top: 0;
       top: 0;
-      width: 100vw;
-      height: 100vh;
+      width: 100%;
+      height: 100%;
       display: block;
       display: block;
       z-index: -1;
       z-index: -1;
     }
     }

+ 2 - 2
threejs/threejs-multiple-scenes-selector.html

@@ -10,8 +10,8 @@
       position: absolute;
       position: absolute;
       left: 0;
       left: 0;
       top: 0;
       top: 0;
-      width: 100vw;
-      height: 100vh;
+      width: 100%;
+      height: 100%;
       display: block;
       display: block;
       z-index: -1;
       z-index: -1;
     }
     }

+ 2 - 2
threejs/threejs-multiple-scenes-v1.html

@@ -10,8 +10,8 @@
       position: fixed;
       position: fixed;
       left: 0;
       left: 0;
       top: 0;
       top: 0;
-      width: 100vw;
-      height: 100vh;
+      width: 100%;
+      height: 100%;
       display: block;
       display: block;
       z-index: -1;
       z-index: -1;
     }
     }

+ 2 - 2
threejs/threejs-multiple-scenes-v2.html

@@ -10,8 +10,8 @@
       position: fixed;
       position: fixed;
       left: 0;
       left: 0;
       top: 0;
       top: 0;
-      width: 100vw;
-      height: 100vh;
+      width: 100%;
+      height: 100%;
       display: block;
       display: block;
       z-index: -1;
       z-index: -1;
     }
     }

+ 2 - 2
threejs/threejs-multiple-scenes-v3.html

@@ -10,8 +10,8 @@
       position: absolute;
       position: absolute;
       left: 0;
       left: 0;
       top: 0;
       top: 0;
-      width: 100vw;
-      height: 100vh;
+      width: 100%;
+      height: 100%;
       display: block;
       display: block;
       z-index: -1;
       z-index: -1;
     }
     }

+ 4 - 3
threejs/threejs-offscreencanvas-w-fallback.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - OffscreenCanvas w/Fallback</title>
     <title>Three.js - OffscreenCanvas w/Fallback</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-offscreencanvas-w-orbitcontrols.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Offscreen Canvas</title>
     <title>Three.js - Offscreen Canvas</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     #c:focus {
     #c:focus {

+ 4 - 3
threejs/threejs-offscreencanvas-w-picking.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - OffscreenCanvas Picking</title>
     <title>Three.js - OffscreenCanvas Picking</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 6 - 5
threejs/threejs-offscreencanvas.html

@@ -6,18 +6,19 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - OffscreenCanvas</title>
     <title>Three.js - OffscreenCanvas</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     #noOffscreenCanvas {
     #noOffscreenCanvas {
         display: flex;
         display: flex;
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         align-items: center;
         align-items: center;
         justify-content: center;
         justify-content: center;
         background: red;
         background: red;

+ 4 - 3
threejs/threejs-picking-gpu.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Picking - RayCaster w/Transparency</title>
     <title>Three.js - Picking - RayCaster w/Transparency</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-picking-raycaster-complex-geo.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Picking - RayCaster</title>
     <title>Three.js - Picking - RayCaster</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-picking-raycaster-transparency.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Picking - RayCaster w/Transparency</title>
     <title>Three.js - Picking - RayCaster w/Transparency</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-picking-raycaster.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Picking - RayCaster</title>
     <title>Three.js - Picking - RayCaster</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 3 - 3
threejs/threejs-postprocessing-adobe-lut-to-png-converter.html

@@ -5,8 +5,8 @@
     <meta charset="utf-8">
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
     <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
     <style>
     <style>
-    body {
-      min-height: 100vh;
+    html, body {
+      min-height: 100%;
       font-family: monospace;
       font-family: monospace;
       background: #222;
       background: #222;
       color: white;
       color: white;
@@ -17,7 +17,7 @@
       image-rendering: pixelated;
       image-rendering: pixelated;
     }
     }
     #cube {
     #cube {
-      max-width: calc(100vw - 20px);
+      max-width: calc(100% - 20px);
       overflow: auto;
       overflow: auto;
     }
     }
   </style>
   </style>

+ 4 - 3
threejs/threejs-postprocessing-custom.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - PostProcessing - Custom</title>
     <title>Three.js - PostProcessing - Custom</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-postprocessing-gui.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - PostProcessing - GUI</title>
     <title>Three.js - PostProcessing - GUI</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-postprocessing.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - PostProcessing</title>
     <title>Three.js - PostProcessing</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-primitives-text.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Primitives</title>
     <title>Three.js - Primitives</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-primitives.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Primitives</title>
     <title>Three.js - Primitives</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-render-on-demand-w-damping.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Rendering on Demand w/Damping</title>
     <title>Three.js - Rendering on Demand w/Damping</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-render-on-demand-w-gui.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Rendering on Demand w/GUI</title>
     <title>Three.js - Rendering on Demand w/GUI</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-render-on-demand.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Rendering on Demand</title>
     <title>Three.js - Rendering on Demand</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

+ 4 - 3
threejs/threejs-render-target.html

@@ -6,12 +6,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     <title>Three.js - Responsive</title>
     <title>Three.js - Responsive</title>
     <style>
     <style>
-    body {
+    html, body {
+        height: 100%;
         margin: 0;
         margin: 0;
     }
     }
     #c {
     #c {
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         display: block;
         display: block;
     }
     }
     </style>
     </style>

Some files were not shown because too many files changed in this diff