mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-22 07:19:41 +00:00
Use LGraphNode.setSize (#2555)
This commit is contained in:
@@ -285,10 +285,10 @@ class PrimitiveNode extends LGraphNode {
|
||||
}
|
||||
|
||||
// Use the biggest dimensions in case the widgets caused the node to grow
|
||||
this.size = [
|
||||
this.setSize([
|
||||
Math.max(this.size[0], oldWidth),
|
||||
Math.max(this.size[1], oldHeight)
|
||||
]
|
||||
])
|
||||
|
||||
if (!recreating) {
|
||||
// Grow our node more if required
|
||||
|
||||
Reference in New Issue
Block a user