Fix: need margin to hide colorpicker

This commit is contained in:
eight 2017-12-05 09:13:01 +08:00
parent aef4589916
commit 6084da9c95

View File

@ -22,8 +22,8 @@ function messageBox({
messageBox.element.classList.remove('calculate-size'); messageBox.element.classList.remove('calculate-size');
// for colorpicker // for colorpicker
const MIN_WIDTH = 350; const MIN_WIDTH = 310;
const MIN_HEIGHT = 219; 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);
const height = Math.max(Math.min(offsetHeight / 0.9 + 2, 600), MIN_HEIGHT); const height = Math.max(Math.min(offsetHeight / 0.9 + 2, 600), MIN_HEIGHT);