diff --git a/controllers/controller.js b/controllers/controller.js index 59865fd..7e78ba5 100644 --- a/controllers/controller.js +++ b/controllers/controller.js @@ -44,8 +44,10 @@ GUI.Controller.prototype.unlisten = function() { } GUI.Controller.prototype.setValue = function(n) { + this.object[this.propertyName] = n; for (var i in this.changeListeners) { + console.log("Telling you I changed to " + n); this.changeListeners[i].call(this, n); } // Whenever you call setValue, the display will be updated automatically. diff --git a/controllers/controller.string.js b/controllers/controller.string.js index d29804d..98a03c1 100644 --- a/controllers/controller.string.js +++ b/controllers/controller.string.js @@ -13,8 +13,8 @@ GUI.StringController = function() { input.setAttribute('spellcheck', 'false'); this.domElement.addEventListener('mouseup', function() { - input.focus(); - input.select(); + //input.focus(); + //input.select(); }, false); // TODO: getting messed up on ctrl a diff --git a/demo/demo.css b/demo/demo.css index 9e5ce3d..e79aba6 100644 --- a/demo/demo.css +++ b/demo/demo.css @@ -17,6 +17,7 @@ h1, h2, h3, h4, h5, h6 { color: #222; } + hr { border: 0; height: 0; diff --git a/demo/demo.js b/demo/demo.js index e002bd1..4745681 100644 --- a/demo/demo.js +++ b/demo/demo.js @@ -44,8 +44,8 @@ function FizzyText(message) { var width = 550; var height = 200; - var textAscent = 82; - var textOffsetLeft = 80; + var textAscent = 140; + var textOffsetLeft = 20; var noiseScale = 300; var frameTime = 30; diff --git a/gui.js b/gui.js index 3bcbc5c..c85ce3c 100644 --- a/gui.js +++ b/gui.js @@ -365,6 +365,7 @@ var GUI = function() { for (var i in controllers) { controllerHeight += controllers[i].domElement.offsetHeight; } + return; if (controllerHeight - 1 > openHeight) { controllerContainer.style.overflowY = "auto"; } else { diff --git a/index.html b/index.html index 7faa0db..6ede8da 100644 --- a/index.html +++ b/index.html @@ -33,13 +33,13 @@