gridjs icon indicating copy to clipboard operation
gridjs copied to clipboard

forceRender won't adjust column width as render does

Open kasten4444 opened this issue 1 year ago • 3 comments

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:

  1. Initiailize a grid using new gridjs.Grid(...) and render ist using .render() --> column width is adjusted properly based on the cell content
  2. 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.

kasten4444 avatar Jul 08 '24 10:07 kasten4444

I observe this as well. https://github.com/grid-js/gridjs/issues/1476 is related to this issue I assume

uzername avatar Sep 27 '24 07:09 uzername

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 26 '25 02:04 stale[bot]

Are there any updates on this issue?

uzername avatar Apr 26 '25 13:04 uzername