Fix: need margin to hide colorpicker
This commit is contained in:
parent
aef4589916
commit
6084da9c95
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user