mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 11:11:53 +00:00
Fix: Vue Node Align/Distribute (#6712)
## Summary Fixes the issue of the nodes not moving when in Vue mode (but changing if switching back to litegraph) ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6712-Fix-Vue-Node-Align-Distribute-2ad6d73d365081339aa6f61e18832bc4) by [Unito](https://www.unito.io)
This commit is contained in:
@@ -79,7 +79,8 @@ export function useNodeArrangement() {
|
||||
return
|
||||
}
|
||||
|
||||
alignNodes(selectedNodes, alignOption.value)
|
||||
const newPositions = alignNodes(selectedNodes, alignOption.value)
|
||||
canvasStore.canvas?.repositionNodesVueMode(newPositions)
|
||||
|
||||
canvasRefresh.refreshCanvas()
|
||||
}
|
||||
@@ -93,7 +94,8 @@ export function useNodeArrangement() {
|
||||
return
|
||||
}
|
||||
|
||||
distributeNodes(selectedNodes, distributeOption.value)
|
||||
const newPositions = distributeNodes(selectedNodes, distributeOption.value)
|
||||
canvasStore.canvas?.repositionNodesVueMode(newPositions)
|
||||
canvasRefresh.refreshCanvas()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user