Use LGraphNode.setSize (#2555)

This commit is contained in:
Chenlei Hu
2025-02-14 11:02:56 -05:00
committed by GitHub
parent f2065777b5
commit acfb95f8d4
5 changed files with 9 additions and 9 deletions

View File

@@ -833,10 +833,10 @@ export class GroupNodeHandler {
groupNode.setInnerNodes(nodes)
groupNode[GROUP].populateWidgets()
app.graph.add(groupNode)
groupNode.size = [
groupNode.setSize([
Math.max(groupNode.size[0], sz[0]),
Math.max(groupNode.size[1], sz[1])
]
])
// Remove all converted nodes and relink them
const builder = new GroupNodeBuilder(nodes)