Skip to content

Align auto layout positions with the canvas grid. fixes #7569 - #8747

Merged
mattcasters merged 1 commit into
apache:mainfrom
bamaer:7569
Oct 5, 2026
Merged

mattcasters merged 1 commit into
apache:mainfrom
bamaer:7569

Conversation

@bamaer

@bamaer bamaer commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Auto layout now snaps node coordinates, spacing, the selection-anchor translation and moved notes to the same configurable grid the GUI uses for manual moves (CanvasGridSize, default 16). Margins and spacing never round down to zero, so the first position always sits at least one full grid cell inside the canvas instead of on the grid origin.

Please add a meaningful description for your change here


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Run mvn clean install apache-rat:check to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
  • If you have a group of commits related to the same change, please squash your commits into one and force push your branch using git rebase -i.
  • Mention the appropriate issue in your description (for example: addresses #123), if applicable.

To make clear that you license your contribution under the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

Auto layout now snaps node coordinates, spacing, the selection-anchor
translation and moved notes to the same configurable grid the GUI uses for
manual moves (CanvasGridSize, default 16). Margins and spacing never round
down to zero, so the first position always sits at least one full grid cell
inside the canvas instead of on the grid origin.
@mattcasters
mattcasters merged commit 1491b86 into apache:main Oct 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants