|
|
@ -163,7 +163,7 @@ class Configurator { |
|
|
|
} |
|
|
|
|
|
|
|
this._push(); |
|
|
|
this.colorPicker.insertTo(this.container); |
|
|
|
//~ this.colorPicker.insertTo(this.container);
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -530,11 +530,8 @@ class Configurator { |
|
|
|
* @private |
|
|
|
*/ |
|
|
|
_showColorPicker(value, div, path) { |
|
|
|
let rect = div.getBoundingClientRect(); |
|
|
|
let bodyRect = document.body.getBoundingClientRect(); |
|
|
|
let pickerX = rect.left + rect.width + 5; |
|
|
|
let pickerY = rect.top - bodyRect.top + rect.height +2; |
|
|
|
this.colorPicker.show(pickerX,pickerY); |
|
|
|
this.colorPicker.insertTo(div); |
|
|
|
this.colorPicker.show(); |
|
|
|
this.colorPicker.setColor(value); |
|
|
|
this.colorPicker.setCallback((color) => { |
|
|
|
let colorString = 'rgba(' + color.r + ',' + color.g + ',' + color.b + ',' + color.a + ')'; |
|
|
|