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

Simple fix to make items not jump if Grid is resized. #133

Closed
wants to merge 1 commit into from

Conversation

WbaN314
Copy link

@WbaN314 WbaN314 commented Jul 25, 2022

Quick and dirty fix for the jumping items on Grid resize problem #125.

If moveAnimation = true nothing changes.
If moveAnimation = false the items will not play a move animation and jump directly to the desired spots.
This fixes the item jumps when the Grid component itself changes size.

This also affects regular movement of components as they will now also jump to their desired spots instead of transitioning. This could be improved by combining the moveAnimation flag with on:resize listener in a more sophisticated approach.

If moveAnimation = true nothing changes.
If moveAnimation = false the items will not play a move animation and jump directly to the desired spots.
this fixes the item jumps when the Grid component itself changes size.

Could be improved by combining it with onResize listener.
@WbaN314
Copy link
Author

WbaN314 commented Aug 5, 2022

Fix suggested in #125.

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

Successfully merging this pull request may close these issues.

1 participant