Remove the resize code, shouldn't be needed with a separate node

This commit is contained in:
Zuellni
2023-09-17 10:11:21 +02:00
parent 0ec46fb285
commit 1de6916e0f
+1 -16
View File
@@ -23,27 +23,12 @@ app.registerExtension({
this.widgets.length = pos;
}
const string = ["STRING", { multiline: true }]
const string = ["STRING", { multiline: true }];
const widget = ComfyWidgets["STRING"](this, "text", string, app).widget;
widget.inputEl.readOnly = true;
widget.inputEl.style.opacity = 0.7;
widget.value = message.text;
requestAnimationFrame(() => {
const size = this.computeSize();
if (size[0] < this.size[0]) {
size[0] = this.size[0];
}
if (size[1] < this.size[1]) {
size[1] = this.size[1];
}
this.onResize?.(size);
app.graph.setDirtyCanvas(true, false);
});
}
};
}