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

Column Width Resize Bug

Open faithod opened this issue 2 years ago • 1 comments

Hi, I have found a bug where every time I manually resize a column and then update the grid column props (changing the width), the width doesn't change. It seems as if the the grid only listens to that width property when you haven't manually resized it.

Steps To Reproduce:

  1. set the column width from props e.g.
columns = [{
...
      resizable: true,
      width: 200,
},...]
  1. manually resize the grid with your mouse
  2. update grid props (changing the width property)

Expected: column widths should change accordingly Actual behaviour: the column widths stay the same, completely ignoring the width property

I am using react-data-grid version 7.0.0-canary.47, react/react-dom version ^16.13.1

faithod avatar Jul 29 '22 10:07 faithod

is it possible to get this looked at urgently please?

faithod avatar Aug 03 '22 09:08 faithod

Hello! we have a similar problem. Is there any deadline for a decision?

m1lka avatar Aug 29 '22 07:08 m1lka

Duplicate issue https://github.com/adazzle/react-data-grid/issues/2042

amanmahajan7 avatar Aug 29 '22 17:08 amanmahajan7