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
Describe the bug
Using .updateConfig and afterwards .forceRender wont adjust the column width properly, compared to the initialization of the grid using .render
To Reproduce
Steps to reproduce the behavior:
Initiailize a grid using new gridjs.Grid(...) and render ist using .render() --> column width is adjusted properly based on the cell content
Change the data using .updateConfig(...) and then .forceRender() --> column width is the same for each column, text overflows etc., Sorting a colum by clicking on the column header sets the column width properly again.
Expected behavior
Column width should adjust or actually be the same as before using forceRender as the user does not expect the column width to change when the grid is updated. It should stay the same like before. And in particular, no text / cell content should overflow.
The text was updated successfully, but these errors were encountered:
kasten4444
changed the title
forceRefresh won't adjust column width as render does
forceRender won't adjust column width as render does
Jul 8, 2024
Describe the bug
Using .updateConfig and afterwards .forceRender wont adjust the column width properly, compared to the initialization of the grid using .render
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Column width should adjust or actually be the same as before using forceRender as the user does not expect the column width to change when the grid is updated. It should stay the same like before. And in particular, no text / cell content should overflow.
The text was updated successfully, but these errors were encountered: