"ppocr/git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "a28ef7f0261ecf8572db193f6265e5ab3d5acfaa"
Commit 36acce58 authored by comfyanonymous's avatar comfyanonymous
Browse files

Auto increase the size of the image upload widget when there's an image.

parent a2236a0c
...@@ -270,6 +270,9 @@ export const ComfyWidgets = { ...@@ -270,6 +270,9 @@ export const ComfyWidgets = {
app.graph.setDirtyCanvas(true); app.graph.setDirtyCanvas(true);
}; };
img.src = `/view?filename=${name}&type=input`; 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 // Add our own callback to the combo widget to render an image when it changes
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment