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

Fix dragging working not correct #2017

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jay0815
Copy link

@jay0815 jay0815 commented Feb 5, 2024

Description

This PR fix the bug

What type of PR is this? (check all applicable)

  • πŸ• Feature
  • [βœ”οΈ ] πŸ› Bug Fix
  • πŸ“ Documentation Update
  • 🎨 Style
  • πŸ§‘β€πŸ’» Code Refactor
  • πŸ”₯ Performance Improvements
  • βœ… Test
  • πŸ€– Build
  • πŸ” CI
  • πŸ“¦ Chore (Release)
  • ⏩ Revert

Related Tickets & Documents

Fixes #2009

Mobile & Desktop Screenshots/Recordings

Added tests?

  • πŸ‘ yes
  • [ βœ”οΈ] πŸ™… no, because they aren't needed
  • πŸ™‹ no, because I need help

Added to documentation?

  • πŸ“œ README.md
  • πŸ““ examples
  • [ βœ”οΈ] πŸ™… no documentation needed

The correct formula for calculating the container width is containerWidth === containerPadding * 2 + colWidth * cols + margin * (cols - 1)
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
@artem-malko
Copy link

Thx a lot!)

@ItsNoHax
Copy link

Does this fix: #1877

@ItsNoHax
Copy link

Just tested this locally and it works like a charm. Fixes #1877

@ItsNoHax
Copy link

Ah better explained in: #2009

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

Successfully merging this pull request may close these issues.

dragging working not correct
3 participants