浏览代码

Fixed stats

Mr.doob 15 年之前
父节点
当前提交
42a19ef7c7
共有 1 个文件被更改,包括 3 次插入1 次删除
  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);