Hello there, we stumbled upon an interesting datatables bug.
When there is a table in a container with display: grid, the table can only grow but never shrink when the container/window is resized. This happens when the scrollY option is set. If I change the containers display property to simply block it works as expected meaning the tables grows and shrinks.
I created a codepen with an easy toggle for the display property:
https://codepen.io/timw-ppi/pen/WbrjgBy
The use case is the following: We need to place two tables next to each other (with buttons in between) and the tables should have the same size. display: grid is perfect for this. We tried display: flex but that causes ResizeObserver errors in datatables. We will try to find a different workaround for now.
Hello there, we stumbled upon an interesting datatables bug.
When there is a table in a container with
display: grid, the table can only grow but never shrink when the container/window is resized. This happens when thescrollYoption is set. If I change the containers display property to simplyblockit works as expected meaning the tables grows and shrinks.I created a codepen with an easy toggle for the display property:
https://codepen.io/timw-ppi/pen/WbrjgBy
The use case is the following: We need to place two tables next to each other (with buttons in between) and the tables should have the same size.
display: gridis perfect for this. We trieddisplay: flexbut that causes ResizeObserver errors in datatables. We will try to find a different workaround for now.