Browse Source

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

pull/570/head
comfyanonymous 2 years ago
parent
commit
36acce58e7
  1. 3
      web/scripts/widgets.js

3
web/scripts/widgets.js

@ -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

Loading…
Cancel
Save