Gridstack.js: "cellHeight=8rem" breaks during resize in 2.0.0

Created on 9 Sep 2020  路  2Comments  路  Source: gridstack/gridstack.js

I migrated to Gridstack 2.0.0 and I noticed that relative units do not work for "cellHeight" anymore. Here is the minimal working example: https://jsitor.com/YYbJFy7UY

To reproduce... First run with line cellHeight: "8rem" comented and everything seems to work. But then uncomment it. You will see that positioning / placeholder don't work if line is not commented out.

bug

All 2 comments

here's the default example with cellHeight: "8rem" set which shows the issue when resizing (renders ok initially).
v 2.0.0
https://jsfiddle.net/adumesny/jqhkry7g/50/

vs 1.2.1 version which works during resize
https://jsfiddle.net/adumesny/jqhkry7g/53/

thanks for posting this!

fixed in 2.0.1

Was this page helpful?
0 / 5 - 0 ratings