mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 02:15:17 +00:00
Auto increase the size of the image upload widget when there's an image.
This commit is contained in:
parent
a2236a0c2a
commit
36acce58e7
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user