Shave of 2px to allow for borders without overflow

This commit is contained in:
narcolepticinsomniac 2019-05-26 06:33:28 -04:00 committed by GitHub
parent 80294408d3
commit 96611339ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -433,8 +433,8 @@ function configDialog(style) {
const MIN_HEIGHT = 250 + PADDING;
colorpicker.remove();
width = constrain(MIN_WIDTH, 800, width + PADDING);
height = constrain(MIN_HEIGHT, 600, height + PADDING);
width = constrain(MIN_WIDTH, 798, width + PADDING);
height = constrain(MIN_HEIGHT, 598, height + PADDING);
document.body.style.setProperty('min-width', width + 'px', 'important');
document.body.style.setProperty('min-height', height + 'px', 'important');
}