fixup! Fix: need margin to hide colorpicker

This commit is contained in:
eight 2017-12-06 03:48:48 +08:00
parent d9c2d30aab
commit 6151155a0f

View File

@ -22,7 +22,7 @@ function messageBox({
messageBox.element.classList.remove('calculate-size'); messageBox.element.classList.remove('calculate-size');
// for colorpicker // for colorpicker
const MIN_WIDTH = 310; const MIN_WIDTH = 350;
const MIN_HEIGHT = 250; const MIN_HEIGHT = 250;
const width = Math.max(Math.min(offsetWidth / 0.9 + 2, 800), MIN_WIDTH); const width = Math.max(Math.min(offsetWidth / 0.9 + 2, 800), MIN_WIDTH);