react-data-grid icon indicating copy to clipboard operation
react-data-grid copied to clipboard

Recompute column widths when the number of columns changes

Open Kipre opened this issue 2 years ago • 0 comments

Recompute column widths on columns length change

I recently ran into an issue (when updating from beta 16 -> 41) where the tables would not behave the same way when presented with a dynamic number of columns. This is a proposal for making them behave like they used to, which in my opinion made more sense.

Current behavior

bad

New (old) behavior

good

Notes

Didn't implement any tests yet, lmk if I should add a couple. The new entry in the demos is just for making it easier to test it in action, I don't think that it's a feature worth demonstrating.

Kipre avatar Nov 22 '23 23:11 Kipre