mirror of
https://github.com/PitPik/colorPicker.git
synced 2025-09-24 16:40:57 -06:00
Merge 9b004c41f37be6f3a6ad1542ae78759efec659ed into 720786e309f55b865811c148e6fc25b050a2caff
This commit is contained in:
commit
090815769c
@ -98,7 +98,8 @@
|
|||||||
var onOff = off ? 'removeEventListener' : 'addEventListener',
|
var onOff = off ? 'removeEventListener' : 'addEventListener',
|
||||||
focusListener = function(e) {
|
focusListener = function(e) {
|
||||||
var input = this,
|
var input = this,
|
||||||
position = {left: input.offsetLeft, top: input.offsetTop},
|
inputRect = input.getBoundingClientRect(),
|
||||||
|
position = {left: inputRect.left, top: inputRect.top},
|
||||||
index = multiple ? Array.prototype.indexOf.call(elms, this) : 0,
|
index = multiple ? Array.prototype.indexOf.call(elms, this) : 0,
|
||||||
colorPicker = colorPickers[index] ||
|
colorPicker = colorPickers[index] ||
|
||||||
(colorPickers[index] = createInstance(this, config)),
|
(colorPickers[index] = createInstance(this, config)),
|
||||||
@ -226,4 +227,4 @@
|
|||||||
(options.secure ? '; secure' : '');
|
(options.secure ? '; secure' : '');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
})(this);
|
})(this);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user