mirror of
https://github.com/PitPik/colorPicker.git
synced 2025-09-01 13:22:36 -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);
|
return setColor(this.colors, newCol, type, undefined, alpha);
|
||||||
} else {
|
} else {
|
||||||
if (alpha !== undefined) {
|
if (alpha !== undefined) {
|
||||||
this.colors.alpha = alpha;
|
this.colors.alpha = limitValue(alpha, 0, 1);
|
||||||
}
|
}
|
||||||
return convertColors(type);
|
return convertColors(type);
|
||||||
}
|
}
|
||||||
@ -168,7 +168,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (alpha !== undefined) {
|
if (alpha !== undefined) {
|
||||||
colors.alpha = +alpha;
|
colors.alpha = limitValue(+alpha, 0, 1);
|
||||||
}
|
}
|
||||||
return convertColors(type, save ? colors : undefined);
|
return convertColors(type, save ? colors : undefined);
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
@ -115,7 +115,7 @@
|
|||||||
colorPicker.saveAsBackground();
|
colorPicker.saveAsBackground();
|
||||||
}
|
}
|
||||||
colorPickers.current = colorPickers[index];
|
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
|
setTimeout(function() { // compensating late style on onload in colorPicker
|
||||||
colorPickerUI.style.display = 'block';
|
colorPickerUI.style.display = 'block';
|
||||||
}, 0);
|
}, 0);
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user