bugfix: Fixing the calculation issue when an image widget is added to the size calculation of the text widget.

This commit is contained in:
Dr.Lt.Data
2023-06-06 22:27:44 +09:00
parent a3a713b6c5
commit 422163c2ba
2 changed files with 6 additions and 2 deletions

View File

@@ -365,6 +365,10 @@ export class ComfyApp {
}
node.prototype.setSizeForImage = function () {
if (this.inputHeight) {
this.setSize(this.size);
return;
}
const minHeight = getImageTop(this) + 220;
if (this.size[1] < minHeight) {
this.setSize([this.size[0], minHeight]);