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
Gridstack from v8 "maximum call stack size exceeded" crash error when cellheight is set with "rem" value #2357
From version 8 and above gridstack produces a weird, hard to debug "maximum call stack size exceeded" error and crashes the whole page when cellHeight is set with "rem". It is working properly with v7
Steps to reproduce
You can reproduce it in with the gridstack repo.
In the Gridstack repo go to: angular -> projects -> demo -> src -> app -> app.component.ts
Add for example: cellHeight: '23rem' to gridOptions in line # 36
Run the app locally, select the proper demo and try to drag&drop one of the grid items
changed the title [-]Gridstack > v8 "maximum call stack size exceeded" crash error when cellheight is set with "rem" value [/-][+]Gridstack from v8 "maximum call stack size exceeded" crash error when cellheight is set with "rem" value [/+]on Jun 5, 2023
Activity
[-]Gridstack > v8 "maximum call stack size exceeded" crash error when cellheight is set with "rem" value [/-][+]Gridstack from v8 "maximum call stack size exceeded" crash error when cellheight is set with "rem" value [/+]adumesny commentedon Jun 12, 2023
I'm not seeing any issue with 8.2.1 - I can drag items just fine (they don't resize though)

adumesny commentedon Jun 12, 2023
Oh never mind - draging the first item to push the other does cause issues...
NaN inf loop when using cellHeight rem/em
adumesny commentedon Jun 12, 2023
took a while to debug - though simple 1 liner fix.
fixed in next release. don't forget to donate if you find this lib useful!
zsolt-horvath commentedon Jun 12, 2023
Thank your for your quick response!