You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cellHeight: "1vw" causes items to move during resize #2208
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.
Activity
adumesny commentedon 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.
[-]Grid items move when we try to resize them[/-][+]cellHeight: "1vw" causes items to move during resize[/+]* fix gridstack#2208 convert vw/vh cellHeight to pixels
Merge pull request gridstack#3421 from adumesny/master