From 5f24e4d705a7c592b867a2685d7a56a1d57d4219 Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Sat, 8 Oct 2022 16:53:47 +0530 Subject: [PATCH] Increased the inpainting editor size; Fix a bug with the brush size not resetting --- ui/media/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/media/main.js b/ui/media/main.js index 482f0670..7db632c8 100644 --- a/ui/media/main.js +++ b/ui/media/main.js @@ -12,7 +12,7 @@ const SHOW_ONLY_FILTERED_IMAGE_KEY = "showOnlyFilteredImage" const STREAM_IMAGE_PROGRESS_KEY = "streamImageProgress" const HEALTH_PING_INTERVAL = 5 // seconds const MAX_INIT_IMAGE_DIMENSION = 768 -const INPAINTING_EDITOR_SIZE = 400 +const INPAINTING_EDITOR_SIZE = 450 const IMAGE_REGEX = new RegExp('data:image/[A-Za-z]+;base64') @@ -281,6 +281,7 @@ function resizeInpaintingEditor() { inpaintingEditorContainer.style.height = heightValue + 'px' inpaintingEditor.opts.enlargeYourContainer = true + inpaintingEditor.opts.size = inpaintingEditor.ctx.lineWidth inpaintingEditor.resize() inpaintingEditor.ctx.lineCap = "round"