We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug When a layout of items is contained within a flex/grid (with gap), and dragging begins, all items collapse the gap via translateY. This is because this code https://github.com/adopted-ember-addons/ember-sortable/blob/master/addon/modifiers/sortable-group.js#L635-L639 is only calculating translateY from the heights of the surrounding elements, which excludes the gap.
translateY
Expected behavior No shift upon drag-start
The text was updated successfully, but these errors were encountered:
Is there a workaround until this is fixed? I have this exact problem.
Sorry, something went wrong.
Properly handle gap values in grid and flex layouts
12ee1aa
Fixes adopted-ember-addons#473
I worked around this by adding a margin instead of using flexbox with a gap.
Successfully merging a pull request may close this issue.
Describe the bug
When a layout of items is contained within a flex/grid (with gap), and dragging begins, all items collapse the gap via
translateY
. This is because this codehttps://github.com/adopted-ember-addons/ember-sortable/blob/master/addon/modifiers/sortable-group.js#L635-L639
is only calculating
translateY
from the heights of the surrounding elements, which excludes the gap.Expected behavior
No shift upon drag-start
The text was updated successfully, but these errors were encountered: