Explorar o código

GUI positioning Tweaks

Master James %!s(int64=9) %!d(string=hai) anos
pai
achega
1b158c69e2
Modificáronse 1 ficheiros con 9 adicións e 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();
 			}