inovua / reactdatagrid

Empower Your Data with the best React Data Grid there is
https://reactdatagrid.io
Other
3.45k stars 57 forks source link

Autosize all columns function crashes when grid has more then 15 columns and columnVirtualization is enabled #397

Open vasyl-hordynskyy opened 7 months ago

vasyl-hordynskyy commented 7 months ago

Relevant code or config Columns virtualization and columns autosize options are enabled.

What you did: I used the default example for performance and virtualization from the documentation (https://reactdatagrid.io/docs/performance-and-virtualization). In this example, when I scroll to the right and open the column menu for a last column and select the 'Autosize all columns' option, the column widths do not change, and an error is logged in the console. What happened: Error in console cannot read properties of undefined on Autosize all columns menu click.

image

Reproduction repository: App example

Problem description: Auto size all columns functionality does not work when vartualized columns option is enabled and grid has more then 15 columns.

Suggested solution:

tomjcb commented 7 months ago

Seems to be a duplicate of #395