瀏覽代碼

GUI positioning Tweaks

Master James 9 年之前
父節點
當前提交
1b158c69e2
共有 1 個文件被更改,包括 9 次插入1 次删除
  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();
 			}