Browse Source

Fixed stats

Mr.doob 15 years ago
parent
commit
42a19ef7c7
1 changed files with 3 additions and 1 deletions
  1. 3 1
      examples/geometry/cube.html

+ 3 - 1
examples/geometry/cube.html

@@ -90,7 +90,9 @@
 				container.appendChild(renderer.viewport);
 
 				stats = new Stats();
-				container.appendChild(stats.getDisplayElement());
+				stats.domElement.style.position = 'absolute';
+				stats.domElement.style.top = '0px';
+				container.appendChild(stats.domElement);
 				
 				document.addEventListener('mousedown', onDocumentMouseDown, false);
 				document.addEventListener('touchstart', onDocumentTouchStart, false);