From 6084da9c95cd9f24c5f2bce37fdc313fa3f754f3 Mon Sep 17 00:00:00 2001 From: eight Date: Tue, 5 Dec 2017 09:13:01 +0800 Subject: [PATCH] Fix: need margin to hide colorpicker --- msgbox/msgbox.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/msgbox/msgbox.js b/msgbox/msgbox.js index 406d21c2..c7b5cae7 100644 --- a/msgbox/msgbox.js +++ b/msgbox/msgbox.js @@ -22,8 +22,8 @@ function messageBox({ messageBox.element.classList.remove('calculate-size'); // for colorpicker - const MIN_WIDTH = 350; - const MIN_HEIGHT = 219; + const MIN_WIDTH = 310; + const MIN_HEIGHT = 250; const width = Math.max(Math.min(offsetWidth / 0.9 + 2, 800), MIN_WIDTH); const height = Math.max(Math.min(offsetHeight / 0.9 + 2, 600), MIN_HEIGHT);