clauderic / clauderic/react-sortable-hoc
Grid sorting is not working correctly when the useWindowAsScrollContainer is used and the elements are center aligned with margin
- Dominant language
- JavaScript
- Stars
- 10.9k
- Forks
- 959
- PR merge metrics
- No merged PRs in 30d
Description
Grid sorting is not working correctly when the `useWindowAsScrollContainer` prop is passed whereas the content is center aligned and has margin
## Current Behaviour
Item from 1st row is not moving to 2nd row when a new item is dragged into first row

## Expected Behaviour
Item from 1st row will flow into 2nd row when a new item is dragged into 1st row.
## Possible Solution
1. Distinguish `container` from `scrollContainer`
2. Introduce 2 new props `useWindowAsXScrollContainer` and `useWindowAsYScrollContainer` which will solve this problem by allowing scrolling in only one axis.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.