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
76f4d65d
Commit
76f4d65d
authored
Mar 22, 2023
by
pythongosssss
Browse files
Remove initial call as now unnecessary
Set canvas to dirty if we grow the node
parent
2b94dee3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
web/scripts/widgets.js
web/scripts/widgets.js
+2
-6
No files found.
web/scripts/widgets.js
View file @
76f4d65d
...
@@ -62,6 +62,7 @@ function addMultilineWidget(node, name, opts, app) {
...
@@ -62,6 +62,7 @@ function addMultilineWidget(node, name, opts, app) {
// There isnt enough space for all the widgets, increase the size of the node
// There isnt enough space for all the widgets, increase the size of the node
freeSpace
=
MIN_SIZE
;
freeSpace
=
MIN_SIZE
;
node
.
size
[
1
]
=
y
+
widgetHeight
+
freeSpace
*
multi
.
length
;
node
.
size
[
1
]
=
y
+
widgetHeight
+
freeSpace
*
multi
.
length
;
node
.
graph
.
setDirtyCanvas
(
true
);
}
}
// Position each of the widgets
// Position each of the widgets
...
@@ -160,11 +161,6 @@ function addMultilineWidget(node, name, opts, app) {
...
@@ -160,11 +161,6 @@ function addMultilineWidget(node, name, opts, app) {
onResize
.
apply
(
this
,
arguments
);
onResize
.
apply
(
this
,
arguments
);
}
}
};
};
requestAnimationFrame
(()
=>
{
computeSize
(
node
.
size
);
app
.
graph
.
setDirtyCanvas
(
true
);
});
}
}
return
{
minWidth
:
400
,
minHeight
:
200
,
widget
};
return
{
minWidth
:
400
,
minHeight
:
200
,
widget
};
...
...
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