2
0
mirror of https://github.com/PitPik/colorPicker.git synced 2025-09-09 09:12:42 -06:00

late style compensation

This commit is contained in:
peterd 2014-09-13 17:54:53 +02:00
parent 8273c3cd11
commit 3e042b338d

View File

@ -116,7 +116,9 @@
} }
colorPickers.current = colorPickers[index]; colorPickers.current = colorPickers[index];
$(options.appenTo || document.body).append($colorPicker); $(options.appenTo || document.body).append($colorPicker);
$colorPicker.show(colorPicker.color.options.animationSpeed); setTimeout(function() { // compensating late style on onload in colorPicker
$colorPicker.show(colorPicker.color.options.animationSpeed);
}, 0);
}); });
if (!colorPickers.evt || off) { if (!colorPickers.evt || off) {