Explorar el Código

GUI positioning Tweaks

Master James hace 9 años
padre
commit
1b158c69e2
Se han modificado 1 ficheros con 9 adiciones y 1 borrados
  1. 9 1
      examples/webgl_lights_spotlight.html

+ 9 - 1
examples/webgl_lights_spotlight.html

@@ -146,7 +146,15 @@
 
 				gui = new dat.GUI();
 
-				gui.width = 180;
+				gui.width = 178;
+				
+				var gStyle = gui.domElement.style;
+				
+				gStyle.position = "absolute";
+				
+				gStyle.top = "48px";
+				
+				gStyle.height = "220px";
 
 				gui.open();
 			}

粤ICP备19079148号