aboutsummaryrefslogtreecommitdiffstats
path: root/javascript/imageMaskFix.js
diff options
context:
space:
mode:
authorMalumaDev <piano.lu92@gmail.com>2022-10-18 06:55:08 +0000
committerGitHub <noreply@github.com>2022-10-18 06:55:08 +0000
commit1997ccff13fc75af223f571e8c927c3d77273dd9 (patch)
treed3d8e4e64c1fb595bef205e531b03418328331f7 /javascript/imageMaskFix.js
parent589215df22d24d560101ba2b1fd7aaf3233f466e (diff)
parent7432b6f4d2c3001895fc75411a34afae1810c1a2 (diff)
downloadstable-diffusion-webui-gfx803-1997ccff13fc75af223f571e8c927c3d77273dd9.tar.gz
stable-diffusion-webui-gfx803-1997ccff13fc75af223f571e8c927c3d77273dd9.tar.bz2
stable-diffusion-webui-gfx803-1997ccff13fc75af223f571e8c927c3d77273dd9.zip
Merge branch 'master' into test_resolve_conflicts
Diffstat (limited to 'javascript/imageMaskFix.js')
-rw-r--r--javascript/imageMaskFix.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/javascript/imageMaskFix.js b/javascript/imageMaskFix.js
index 3d77bfe9..9fe7a603 100644
--- a/javascript/imageMaskFix.js
+++ b/javascript/imageMaskFix.js
@@ -31,8 +31,8 @@ function imageMaskResize() {
wrapper.style.width = `${wW}px`;
wrapper.style.height = `${wH}px`;
- wrapper.style.left = `${(w-wW)/2}px`;
- wrapper.style.top = `${(h-wH)/2}px`;
+ wrapper.style.left = `0px`;
+ wrapper.style.top = `0px`;
canvases.forEach( c => {
c.style.width = c.style.height = '';
@@ -42,4 +42,4 @@ function imageMaskResize() {
});
}
- onUiUpdate(() => imageMaskResize()); \ No newline at end of file
+ onUiUpdate(() => imageMaskResize());