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
36acce58
Commit
36acce58
authored
Apr 24, 2023
by
comfyanonymous
Browse files
Auto increase the size of the image upload widget when there's an image.
parent
a2236a0c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
web/scripts/widgets.js
web/scripts/widgets.js
+3
-0
No files found.
web/scripts/widgets.js
View file @
36acce58
...
...
@@ -270,6 +270,9 @@ export const ComfyWidgets = {
app
.
graph
.
setDirtyCanvas
(
true
);
};
img
.
src
=
`/view?filename=
${
name
}
&type=input`
;
if
((
node
.
size
[
1
]
-
node
.
imageOffset
)
<
100
)
{
node
.
size
[
1
]
=
250
+
node
.
imageOffset
;
}
}
// Add our own callback to the combo widget to render an image when it changes
...
...
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