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
28220fa8
Commit
28220fa8
authored
Dec 02, 2023
by
pythongosssss
Browse files
Fix node growing with DOM widgets when adding image even if enough space
parent
2995a247
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
web/scripts/app.js
web/scripts/app.js
+1
-1
web/scripts/domWidget.js
web/scripts/domWidget.js
+2
-0
No files found.
web/scripts/app.js
View file @
28220fa8
...
...
@@ -411,7 +411,7 @@ export class ComfyApp {
node
.
prototype
.
setSizeForImage
=
function
(
force
)
{
if
(
!
force
&&
this
.
animatedImages
)
return
;
if
(
this
.
inputHeight
)
{
if
(
this
.
inputHeight
||
this
.
freeWidgetSpace
>
210
)
{
this
.
setSize
(
this
.
size
);
return
;
}
...
...
web/scripts/domWidget.js
View file @
28220fa8
...
...
@@ -120,6 +120,8 @@ function computeSize(size) {
freeSpace
-=
220
;
}
this
.
freeWidgetSpace
=
freeSpace
;
if
(
freeSpace
<
0
)
{
// Not enough space for all widgets so we need to grow
size
[
1
]
-=
freeSpace
;
...
...
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