Skip to content
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

When creating nodes, the property SnapToGrid is not used to set the height and width #521

Open
peransin-obeo opened this issue Dec 4, 2024 · 0 comments

Comments

@peransin-obeo
Copy link
Contributor

peransin-obeo commented Dec 4, 2024

When a new node is created (automatically in a refresh or using a tool or an operation), only the top/left point is place on the grid.
The 3 other corners are usually not the grid as width and height are not consider when user does not perform a drag-n-drop (simple click).

This happens in the case when a property influences a dimension of the element or not.
In both cases, user would usually expect the node to adjust to the grid by expanding the (default or computed) size to Grid-step multiplication product.

The modification could occur in:

Before updating the bounds, adjust the size to the grid if necessary and possible.
As this only concern new element, existing diagram would not be impacted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant