Skip to content
Browse files

three_7.html: use window.inner* instead of document.body.client*

  • Loading branch information...
1 parent b510bfc commit 59cbdca30ff822a3eb836ba64d31577991a8c019 @kig committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 three/three_7.html
View
4 three/three_7.html
@@ -73,8 +73,8 @@
}
var renderer = new THREE.WebGLRenderer({antialias: true});
- var w = document.body.clientWidth;
- var h = document.body.clientHeight;
+ var w = window.innerWidth;
+ var h = window.innerHeight;
renderer.setSize(w, h);
document.body.appendChild(renderer.domElement);

0 comments on commit 59cbdca

Please sign in to comment.
Something went wrong with that request. Please try again.