Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
69033081
Commit
69033081
authored
Dec 11, 2023
by
Dr.Lt.Data
Browse files
mask editor bugfix
- Addressing the issue where an unnecessary hidden panel disrupts the drawing.
parent
340177e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
web/extensions/core/maskeditor.js
web/extensions/core/maskeditor.js
+0
-6
No files found.
web/extensions/core/maskeditor.js
View file @
69033081
...
...
@@ -167,10 +167,6 @@ class MaskEditorDialog extends ComfyDialog {
// If it is specified as relative, using it only as a hidden placeholder for padding is recommended
// to prevent anomalies where it exceeds a certain size and goes outside of the window.
var
placeholder
=
document
.
createElement
(
"
div
"
);
placeholder
.
style
.
position
=
"
relative
"
;
placeholder
.
style
.
height
=
"
50px
"
;
var
bottom_panel
=
document
.
createElement
(
"
div
"
);
bottom_panel
.
style
.
position
=
"
absolute
"
;
bottom_panel
.
style
.
bottom
=
"
0px
"
;
...
...
@@ -192,7 +188,6 @@ class MaskEditorDialog extends ComfyDialog {
this
.
brush
=
brush
;
this
.
element
.
appendChild
(
imgCanvas
);
this
.
element
.
appendChild
(
maskCanvas
);
this
.
element
.
appendChild
(
placeholder
);
// must below z-index than bottom_panel to avoid covering button
this
.
element
.
appendChild
(
bottom_panel
);
document
.
body
.
appendChild
(
brush
);
...
...
@@ -218,7 +213,6 @@ class MaskEditorDialog extends ComfyDialog {
this
.
element
.
appendChild
(
imgCanvas
);
this
.
element
.
appendChild
(
maskCanvas
);
this
.
element
.
appendChild
(
placeholder
);
// must below z-index than bottom_panel to avoid covering button
this
.
element
.
appendChild
(
bottom_panel
);
bottom_panel
.
appendChild
(
clearButton
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment