mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Added updateValue method to StringController (so watched string controllers update).
Moved easing from margin-top to height. It's now showing an ugly scrollbar jump. Hmm...
This commit is contained in:
parent
977468adbd
commit
fe172c75fb
@ -12,6 +12,7 @@ var StringController = function() {
|
|||||||
|
|
||||||
input.setAttribute('value', initialValue);
|
input.setAttribute('value', initialValue);
|
||||||
input.setAttribute('spellcheck', 'false');
|
input.setAttribute('spellcheck', 'false');
|
||||||
|
|
||||||
this.domElement.addEventListener('mouseup', function() {
|
this.domElement.addEventListener('mouseup', function() {
|
||||||
input.focus();
|
input.focus();
|
||||||
input.select();
|
input.select();
|
||||||
@ -22,6 +23,11 @@ var StringController = function() {
|
|||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
this.domElement.appendChild(input);
|
this.domElement.appendChild(input);
|
||||||
|
|
||||||
|
this.updateValue = function(val) {
|
||||||
|
input.setAttribute('value', val);
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
StringController.prototype = new Controller();
|
StringController.prototype = new Controller();
|
||||||
StringController.prototype.constructor = StringController;
|
StringController.prototype.constructor = StringController;
|
6
gui.css
6
gui.css
@ -8,9 +8,6 @@
|
|||||||
left: 100%;
|
left: 100%;
|
||||||
margin-left: -300px;
|
margin-left: -300px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
-moz-transition: margin-top .2s ease-out;
|
|
||||||
-webkit-transition: margin-top .2s ease-out;
|
|
||||||
transition: margin-top .2s ease-out;
|
|
||||||
-webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
|
-webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
|
||||||
-moz-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
|
-moz-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
|
||||||
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
|
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
|
||||||
@ -26,6 +23,9 @@
|
|||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
background-color: rgba(0,0,0,0.1);
|
background-color: rgba(0,0,0,0.1);
|
||||||
|
-moz-transition: height .2s ease-out;
|
||||||
|
-webkit-transition: height .2s ease-out;
|
||||||
|
transition: height .2s ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
#guidat-toggle {
|
#guidat-toggle {
|
||||||
|
Loading…
Reference in New Issue
Block a user