Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

forceRender won't adjust column width as render does #1460

Open
kasten4444 opened this issue Jul 8, 2024 · 1 comment
Open

forceRender won't adjust column width as render does #1460

kasten4444 opened this issue Jul 8, 2024 · 1 comment

Comments

@kasten4444
Copy link

kasten4444 commented 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:

  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 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
@uzername
Copy link

I observe this as well. #1476 is related to this issue I assume

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants