mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-23 15:59:47 +00:00
Revert delay of layout initialization (#8619)
#7591 added a one tick delay to layout initialization in an attempt to resolve some layouting discrepancies. However, it appears to have reintroduced node scaling issues and introduced a new bug that prevents cloning nodes with alt+drag in vue. Alternatives methods of resolving the original issue are being investigated, but this change was causing more harm than good. The prior PR included other changes (like a testing fix). Those changes remain beneficial and do not need to be reverted. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8619-Revert-delay-of-layout-initialization-2fe6d73d365081fc9111c9457ea9752d) by [Unito](https://www.unito.io) --------- Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
@@ -432,7 +432,7 @@ export function useGraphNodeManager(graph: LGraph): GraphNodeManager {
|
||||
} else {
|
||||
// Not during workflow loading - initialize layout immediately
|
||||
// This handles individual node additions during normal operation
|
||||
requestAnimationFrame(initializeVueNodeLayout)
|
||||
initializeVueNodeLayout()
|
||||
}
|
||||
|
||||
// Call original callback if provided
|
||||
|
||||
Reference in New Issue
Block a user