fix: backward comp with old ui
This commit is contained in:
parent
1a017ee6a3
commit
32d574475c
@ -215,6 +215,7 @@ function convertToInput(node, widget, config) {
|
|||||||
// widgets_values: ["input_text", widget.value],
|
// widgets_values: ["input_text", widget.value],
|
||||||
// });
|
// });
|
||||||
inputNode.pos = node.pos;
|
inputNode.pos = node.pos;
|
||||||
|
inputNode.id = ++app.graph.last_node_id;
|
||||||
// inputNode.pos[0] += node.size[0] + 40;
|
// inputNode.pos[0] += node.size[0] + 40;
|
||||||
node.pos[0] -= inputNode.size[0] + 20;
|
node.pos[0] -= inputNode.size[0] + 20;
|
||||||
console.log(inputNode);
|
console.log(inputNode);
|
||||||
@ -261,6 +262,7 @@ function convertToInput(node, widget, config) {
|
|||||||
inputNode.configure({
|
inputNode.configure({
|
||||||
widgets_values: ["input_text", widget.value],
|
widgets_values: ["input_text", widget.value],
|
||||||
});
|
});
|
||||||
|
inputNode.id = ++app.graph.last_node_id;
|
||||||
inputNode.pos = node.pos;
|
inputNode.pos = node.pos;
|
||||||
inputNode.pos[0] -= node.size[0] + 40;
|
inputNode.pos[0] -= node.size[0] + 40;
|
||||||
console.log(inputNode);
|
console.log(inputNode);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user