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

align-items: baseline causes odd behaviour #574

Open
evoactivity opened this issue Jul 23, 2024 · 2 comments
Open

align-items: baseline causes odd behaviour #574

evoactivity opened this issue Jul 23, 2024 · 2 comments

Comments

@evoactivity
Copy link

Describe the bug
When a sortable list has align-items: baseline as part of it's CSS, items jump to a different position when dragging begins and jump back when dragging ends.

Also I am seeing behaviour where an item is moved to the beginning of the row when it wasn't interacted with.

To Reproduce

Create a sortable flex list in a grid with align-items: baseline

Expected behavior
Items should remain in their rendered position and move predictably.

Screenshots

drag.mp4
@evoactivity
Copy link
Author

Seems similar to #520

@toreric
Copy link

toreric commented Jul 24, 2024

Description
Another similar problem within a flex block where justify-content:center is prescribed:
Apparenlty, justify-content:left takes effect immediately when a drag is started, making the items flip away unexpectedly. Depending of the actual item population, you can perhaps complete the drag-drop within the 'new screen'. The screen reverts as soon as the mouse is released.

To Reproduce
Arrange enough many items within a direction='grid'-and-justify-content:center-element with also display:flex;flex-wrap:wrap.

PS If the items are a hundred thumbnails and a drag is started, all except the dragged one flip off-screen. Added: This appears apparently only when more than one component utilizes ember-sortable simultaneously, should simultaneous use be avoided?

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

2 participants