Columns set with
max-content only calculate their width on the initial render. It would be nice to have the possibility to trigger a recalculation of the column sizes when needed, and have all columns' width update accordingly.
Because it's a expensive operation, I think it's probably better to have it as part of the imperative ref.
If I'm not missing anything, the implementation should be straightforward: just update
setColumnWidths with a map that excludes the columns with
max-content (and similar). I did a patched version of react-data-grid that adds
recalculateColumns: () => setColumnWidths(() => new Map()) on the
useImperativeHandle and it works in a way that would fit my needs.
|Issue Title||Created Date||Updated Date|