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
your demo is incorrect. you have 9 column but don't include extra.css. then you have grid.update(el, { h: el.gridstackNode }) which is garbage...
also updating an item size as you resize is going to be not well defined. yeah it shouldn't crash, but you shouldn't do it either... could cause inf loop or some weird overlapp since you may put some incorrect values, and it needs to call you again.
Uh oh!
There was an error while loading. Please reload this page.
Subject of the issue
I'm trying to create a grid where elements have a fixed aspect ratio, I'm successfull but I found a bug when using the resize event.
Your environment
Steps to reproduce
https://jsfiddle.net/b2xwjd6y/
Expected behavior
I need to resize elements keeping the aspec ratio.
If you guys can watch on this video, when the resize event is enabled I got the desired result, it will resize correctly keeping the aspect radio, but it will crash after the resize ending:
https://github.com/user-attachments/assets/07369d42-b56b-4571-a722-03223e37ae19
If you guys can watch on this video, when the resize event is disabled, it will resize without keeping the aspect radio:
https://github.com/user-attachments/assets/32bce07d-bc82-4f02-86f6-021ab328fb1d
The text was updated successfully, but these errors were encountered: