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

The x,y coordinate of the item is incorrect #2012

Open
langzhi827 opened this issue Jan 29, 2024 · 0 comments
Open

The x,y coordinate of the item is incorrect #2012

langzhi827 opened this issue Jan 29, 2024 · 0 comments

Comments

@langzhi827
Copy link

Describe the bug

When rowheight=1, clicking on item causes an error in updating the xy coordinates of the item, resulting in a change in the position of the item

Your Example Website or App

https://codesandbox.io/p/sandbox/goofy-tristan-d8klfx?file=%2Fsrc%2FShowcaseLayout.js%3A95%2C56

Steps to Reproduce the Bug or Issue

  1. set rowheight=1
  2. click item

Expected behavior

The x,y coordinates of the item are correct

react-grid-layout library version

1.4.4

Operating System Version

macOS

Browser

Chrome

Additional context

No response

Screenshots or Videos

No response

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

1 participant