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
fix: Modify Drag values according to containerPadding #1323
Conversation
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this PR will be closed in 7 days |
Can't merge with all these project changes - please remove the changes to |
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this PR will be closed in 7 days |
I deleted dist, .gitignore, build, etc. I'm sorry I'm late. |
@STRML hi is there anything holding back this PR? I stumbled upon this issue, I noticed the same problem. |
Wow, this is actually a big fix - if I kind of regret this even being an option. It would be better if one used an outer container with padding or had margin on the grid layout. But here we are, and thank you for the fix! |
|
Nice! Thank you! |
Thank you! |
The logic for calculating the positions of top and left in PR react-grid-layout#1323 is problematic. The compensation calculation for the containerPadding attribute should be placed in calcXY instead of being processed every time during dragging
If you drag the item with containerPadding, it looks as if it is moved more than the actual location.