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
364ef193
Unverified
Commit
364ef193
authored
Jan 30, 2024
by
Meowu
Committed by
GitHub
Jan 30, 2024
Browse files
fix: inpaint on mask editor bottom area
parent
ed2fa105
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
web/extensions/core/maskeditor.js
web/extensions/core/maskeditor.js
+3
-0
No files found.
web/extensions/core/maskeditor.js
View file @
364ef193
...
@@ -110,6 +110,7 @@ class MaskEditorDialog extends ComfyDialog {
...
@@ -110,6 +110,7 @@ class MaskEditorDialog extends ComfyDialog {
createButton
(
name
,
callback
)
{
createButton
(
name
,
callback
)
{
var
button
=
document
.
createElement
(
"
button
"
);
var
button
=
document
.
createElement
(
"
button
"
);
button
.
style
.
pointerEvents
=
"
auto
"
;
button
.
innerText
=
name
;
button
.
innerText
=
name
;
button
.
addEventListener
(
"
click
"
,
callback
);
button
.
addEventListener
(
"
click
"
,
callback
);
return
button
;
return
button
;
...
@@ -146,6 +147,7 @@ class MaskEditorDialog extends ComfyDialog {
...
@@ -146,6 +147,7 @@ class MaskEditorDialog extends ComfyDialog {
divElement
.
style
.
display
=
"
flex
"
;
divElement
.
style
.
display
=
"
flex
"
;
divElement
.
style
.
position
=
"
relative
"
;
divElement
.
style
.
position
=
"
relative
"
;
divElement
.
style
.
top
=
"
2px
"
;
divElement
.
style
.
top
=
"
2px
"
;
divElement
.
style
.
pointerEvents
=
"
auto
"
;
self
.
brush_slider_input
=
document
.
createElement
(
'
input
'
);
self
.
brush_slider_input
=
document
.
createElement
(
'
input
'
);
self
.
brush_slider_input
.
setAttribute
(
'
type
'
,
'
range
'
);
self
.
brush_slider_input
.
setAttribute
(
'
type
'
,
'
range
'
);
self
.
brush_slider_input
.
setAttribute
(
'
min
'
,
'
1
'
);
self
.
brush_slider_input
.
setAttribute
(
'
min
'
,
'
1
'
);
...
@@ -173,6 +175,7 @@ class MaskEditorDialog extends ComfyDialog {
...
@@ -173,6 +175,7 @@ class MaskEditorDialog extends ComfyDialog {
bottom_panel
.
style
.
left
=
"
20px
"
;
bottom_panel
.
style
.
left
=
"
20px
"
;
bottom_panel
.
style
.
right
=
"
20px
"
;
bottom_panel
.
style
.
right
=
"
20px
"
;
bottom_panel
.
style
.
height
=
"
50px
"
;
bottom_panel
.
style
.
height
=
"
50px
"
;
bottom_panel
.
style
.
pointerEvents
=
"
none
"
;
var
brush
=
document
.
createElement
(
"
div
"
);
var
brush
=
document
.
createElement
(
"
div
"
);
brush
.
id
=
"
brush
"
;
brush
.
id
=
"
brush
"
;
...
...
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