|
@@ -607,9 +607,9 @@ UI.Color = function () {
|
|
var dom = document.createElement( 'input' );
|
|
var dom = document.createElement( 'input' );
|
|
dom.className = 'Color';
|
|
dom.className = 'Color';
|
|
dom.style.width = '64px';
|
|
dom.style.width = '64px';
|
|
- dom.style.height = '16px';
|
|
|
|
|
|
+ dom.style.height = '17px';
|
|
dom.style.border = '0px';
|
|
dom.style.border = '0px';
|
|
- dom.style.padding = '0px';
|
|
|
|
|
|
+ dom.style.padding = '2px';
|
|
dom.style.backgroundColor = 'transparent';
|
|
dom.style.backgroundColor = 'transparent';
|
|
|
|
|
|
try {
|
|
try {
|
|
@@ -770,7 +770,6 @@ UI.Number = function ( number ) {
|
|
function onFocus( event ) {
|
|
function onFocus( event ) {
|
|
|
|
|
|
dom.style.backgroundColor = '';
|
|
dom.style.backgroundColor = '';
|
|
- dom.style.borderColor = '#ccc';
|
|
|
|
dom.style.cursor = '';
|
|
dom.style.cursor = '';
|
|
|
|
|
|
}
|
|
}
|
|
@@ -778,11 +777,12 @@ UI.Number = function ( number ) {
|
|
function onBlur( event ) {
|
|
function onBlur( event ) {
|
|
|
|
|
|
dom.style.backgroundColor = 'transparent';
|
|
dom.style.backgroundColor = 'transparent';
|
|
- dom.style.borderColor = 'transparent';
|
|
|
|
dom.style.cursor = 'col-resize';
|
|
dom.style.cursor = 'col-resize';
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ onBlur();
|
|
|
|
+
|
|
dom.addEventListener( 'mousedown', onMouseDown, false );
|
|
dom.addEventListener( 'mousedown', onMouseDown, false );
|
|
dom.addEventListener( 'change', onChange, false );
|
|
dom.addEventListener( 'change', onChange, false );
|
|
dom.addEventListener( 'focus', onFocus, false );
|
|
dom.addEventListener( 'focus', onFocus, false );
|
|
@@ -942,7 +942,6 @@ UI.Integer = function ( number ) {
|
|
function onFocus( event ) {
|
|
function onFocus( event ) {
|
|
|
|
|
|
dom.style.backgroundColor = '';
|
|
dom.style.backgroundColor = '';
|
|
- dom.style.borderColor = '#ccc';
|
|
|
|
dom.style.cursor = '';
|
|
dom.style.cursor = '';
|
|
|
|
|
|
}
|
|
}
|
|
@@ -950,11 +949,12 @@ UI.Integer = function ( number ) {
|
|
function onBlur( event ) {
|
|
function onBlur( event ) {
|
|
|
|
|
|
dom.style.backgroundColor = 'transparent';
|
|
dom.style.backgroundColor = 'transparent';
|
|
- dom.style.borderColor = 'transparent';
|
|
|
|
dom.style.cursor = 'col-resize';
|
|
dom.style.cursor = 'col-resize';
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ onBlur();
|
|
|
|
+
|
|
dom.addEventListener( 'mousedown', onMouseDown, false );
|
|
dom.addEventListener( 'mousedown', onMouseDown, false );
|
|
dom.addEventListener( 'change', onChange, false );
|
|
dom.addEventListener( 'change', onChange, false );
|
|
dom.addEventListener( 'focus', onFocus, false );
|
|
dom.addEventListener( 'focus', onFocus, false );
|