From c9581862457421bdc957920f1b9acc8f12ebce23 Mon Sep 17 00:00:00 2001 From: tophf Date: Fri, 22 Dec 2017 11:52:53 +0300 Subject: [PATCH] FF workaround: set position:fixed prior to appending --- vendor-overwrites/colorpicker/colorpicker.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vendor-overwrites/colorpicker/colorpicker.js b/vendor-overwrites/colorpicker/colorpicker.js index 5f2861e9..c08d327b 100644 --- a/vendor-overwrites/colorpicker/colorpicker.js +++ b/vendor-overwrites/colorpicker/colorpicker.js @@ -356,6 +356,10 @@ const NAMED_COLORS = new Map([ ' ' + CSS_PREFIX + 'theme-' + (opt.theme === 'dark' || opt.theme === 'light' ? opt.theme : guessTheme()); + $root.style = ` + display: block !important; + position: fixed !important; + `; document.body.appendChild($root); shown = true; @@ -365,10 +369,6 @@ const NAMED_COLORS = new Map([ setFromHexLettercaseElement(); if (!isNaN(options.left) && !isNaN(options.top)) { - $root.style = ` - display: block; - position: fixed; - `.replace(/;/g, '!important;'); reposition(); } }