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

cellHeight: "1vw" causes items to move during resize #2208

Open
jpleau opened this issue Feb 10, 2023 · 1 comment
Open

cellHeight: "1vw" causes items to move during resize #2208

jpleau opened this issue Feb 10, 2023 · 1 comment

Comments

@jpleau
Copy link

jpleau commented Feb 10, 2023

It looks like whenever we try to resize a grid-item, it moves up or down. The distance depends on how far from the top we are.

Example:

https://jsfiddle.net/k52y8gxv/

Scroll down to see the bottom-right grid item, try to resize it, it will move while we're resizing. Not sure what decides if it's moving up or down. The interesting part is that if you move it up, the distance it will try to move will be reduced, and if you move it down, the distance will be increased.

I tested this with 7.0.1 and 7.2.3, also tried with older versions that were using the jquery D&D.

@adumesny
Copy link
Member

adumesny commented Feb 11, 2023

setting an explicit height in px works - something about cellHeight: "1vw" is causing some issues...
https://jsfiddle.net/adumesny/vzdtbLy6/

low priority.

@adumesny adumesny changed the title Grid items move when we try to resize them cellHeight: "1vw" causes items to move during resize Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants