Items dragged within a sortable grid are not properly moving according to widths
See original GitHub issuehttps://share.getcloudapp.com/yAu6ymWD
In the above, you’ll notice that the calculations seem off. I’m not sure if I’m supposed to be calculating any widths and passing them to the library or if the library should be smartly moving these elements around according to their widths.
The elements are inline-block
elements.
Also, I noticed that when I leverage transform: translate3d...
CSS that you can noticeably see that the font styling changes… to avoid this, I instead just move them around with top/left
CSS.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Sortable elements with variable size looks weird ... - GitHub
I have an issue when moving an element through elements with variable. ... Items dragged within a sortable grid are not properly moving...
Read more >jquery - Sortable behaves wrong when CSS3 scale is applied
Basically, positions are correctly calculated, but the items keep width and height values that are not transformed, which is causing the ...
Read more >jQuery Sortable Documentation - Grid Integration - Kendo UI ...
Grid Integration. You can use the Kendo UI Sortable widget to reorder the items in a Grid by dragging and dropping. Prerequisites. Overview...
Read more >Row Dragging - JavaScript Data Grid
The property rowDragManaged is set, to tell the grid to move the row as the row is dragged. If a sort (click on...
Read more >Draggable Elements That Push Others Out Of Way - CSS-Tricks
E.g. click on element, hold down mouse button, drag mouse cursor, element drags with the mouse, release mouse button to release element. Or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Did you set the sorting
strategy
to a no-op?Your layout is not predictable, so you’ll need to follow the same strategy outlined here https://github.com/clauderic/dnd-kit/issues/44#issuecomment-757312037 or here https://github.com/clauderic/dnd-kit/issues/44#issuecomment-757324165