"web/vscode:/vscode.git/clone" did not exist on "1b556ea9f43c4ead1235dfefd7d84e193667f6ef"
Commit 76f4d65d authored by pythongosssss's avatar pythongosssss
Browse files

Remove initial call as now unnecessary

Set canvas to dirty if we grow the node
parent 2b94dee3
......@@ -62,6 +62,7 @@ function addMultilineWidget(node, name, opts, app) {
// There isnt enough space for all the widgets, increase the size of the node
freeSpace = MIN_SIZE;
node.size[1] = y + widgetHeight + freeSpace * multi.length;
node.graph.setDirtyCanvas(true);
}
// Position each of the widgets
......@@ -160,11 +161,6 @@ function addMultilineWidget(node, name, opts, app) {
onResize.apply(this, arguments);
}
};
requestAnimationFrame(() => {
computeSize(node.size);
app.graph.setDirtyCanvas(true);
});
}
return { minWidth: 400, minHeight: 200, widget };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment