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

Incompatible with zoom #564

Open
DougsSc opened this issue Feb 8, 2024 · 1 comment
Open

Incompatible with zoom #564

DougsSc opened this issue Feb 8, 2024 · 1 comment

Comments

@DougsSc
Copy link

DougsSc commented Feb 8, 2024

Zooming the grid breaks the calculations performed by the layout when the layout has a fixed size.

example.mp4
@DougsSc
Copy link
Author

DougsSc commented Feb 8, 2024

I fix this changing the decimal precision of PackerProcessor.roundNumber to zero, simply using Math.round and off course, enabling rounding=true on layout properties.

I haven't found any other problems with this trick, but it is possible to develop other better solutions, such as passing a function to set rounding or setting a value for decimal precision in the rounding property.

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

No branches or pull requests

1 participant