Skip to content

Update nodes auto layout default spacing for snap to grid size #8318

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 21, 2025

Conversation

skunkworxdark
Copy link
Contributor

Summary

Update workflowSettingsSlice.ts

Change the default settings for auto layout nodeSpacing and layerSpacing to 30 instead of 32. This will make the x position of auto-laid out nodes land on the snap to grid positions.

A spacing of 30 is needed because the node width (320) + 30 = 350, which is divisible by the snap to grid size of 25.

Related Issues / Discussions

Discussed on Discord here https://discord.com/channels/1020123559063990373/1083864753543331981/1396891225025417347

QA Instructions

Add some nodes to a wokflow. Do an auto layout the default node spacing and layer spacing should be 30. The positioning of each node left-hand side should align with the snap to grid positions

Merge Plan

NA

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

@github-actions github-actions bot added the frontend PRs that change frontend files label Jul 21, 2025
@psychedelicious psychedelicious enabled auto-merge (rebase) July 21, 2025 21:38
Update workflowSettingsSlice.ts

Change the default settings for auto layout nodeSpacing and layerSpacing  to 30 instead of 32.    This will make the x position of auto layed nodes land on the snap to grid positions. 

Because the node width (320) + 30 = 350 which is divisible by the snap to grid size of 25.
@psychedelicious psychedelicious merged commit 6430d83 into invoke-ai:main Jul 21, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend PRs that change frontend files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants