Fix text position

Dont render hidden textareas
This commit is contained in:
pythongosssss
2023-08-19 15:52:14 +01:00
parent 4c1b3ff7cd
commit da139a47d1
+4 -2
View File
@@ -53,10 +53,11 @@ class WorkflowImage {
app.canvas.ds.offset = [-bounds[0], -bounds[1]];
}
getDrawTextConfig() {
getDrawTextConfig(_, widget) {
return {
x: 10,
y: LiteGraph.NODE_TITLE_HEIGHT,
y: widget.last_y + 10,
resetTransform: false,
};
}
@@ -539,6 +540,7 @@ app.registerExtension({
const draw = w.widget.draw;
w.widget.draw = function (ctx) {
draw.apply(this, arguments);
if (this.inputEl.hidden) return;
if (getDrawTextConfig) {
const config = getDrawTextConfig(ctx, this);