From 3e042b338dbc46836e0fe0a4daba71176925a9a9 Mon Sep 17 00:00:00 2001 From: peterd Date: Sat, 13 Sep 2014 17:54:53 +0200 Subject: [PATCH] late style compensation --- jQuery_implementation/jqColor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jQuery_implementation/jqColor.js b/jQuery_implementation/jqColor.js index 243ef01..afb68f3 100644 --- a/jQuery_implementation/jqColor.js +++ b/jQuery_implementation/jqColor.js @@ -116,7 +116,9 @@ } colorPickers.current = colorPickers[index]; $(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) {