mirror of
https://github.com/PitPik/colorPicker.git
synced 2025-08-30 20:42:45 -06:00
bugfix appendTo
This commit is contained in:
parent
426fbfb125
commit
6945e8d04a
4
color.all.min.js
vendored
4
color.all.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -76,7 +76,7 @@
|
||||
return setColor(this.colors, newCol, type, undefined, alpha);
|
||||
} else {
|
||||
if (alpha !== undefined) {
|
||||
this.colors.alpha = alpha;
|
||||
this.colors.alpha = limitValue(alpha, 0, 1);
|
||||
}
|
||||
return convertColors(type);
|
||||
}
|
||||
@ -168,7 +168,7 @@
|
||||
}
|
||||
}
|
||||
if (alpha !== undefined) {
|
||||
colors.alpha = +alpha;
|
||||
colors.alpha = limitValue(+alpha, 0, 1);
|
||||
}
|
||||
return convertColors(type, save ? colors : undefined);
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -115,7 +115,7 @@
|
||||
colorPicker.saveAsBackground();
|
||||
}
|
||||
colorPickers.current = colorPickers[index];
|
||||
(options.appenTo || document.body).appendChild(colorPickerUI);
|
||||
(options.appendTo || document.body).appendChild(colorPickerUI);
|
||||
setTimeout(function() { // compensating late style on onload in colorPicker
|
||||
colorPickerUI.style.display = 'block';
|
||||
}, 0);
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user