Browse Source

Ok, that's the last one.

Mr.doob 15 years ago
parent
commit
322d59fe4d
1 changed files with 3 additions and 1 deletions
  1. 3 1
      examples/particles/waves.html

+ 3 - 1
examples/particles/waves.html

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