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

Values not showing up for right-hand column cells when resize the window

Open francesc79 opened this issue 8 years ago • 14 comments

  • Have you already searched for similar issues? Please help us out and double-check first!

  • Also, please don't be that person who deletes this template. It's here for a reason.

  • Thanks!


Which version of React JS are you using?

✅ Officially supported ✅

  • [ ] v15.4.x

⚠️ Not officially supported, expect warnings ⚠️

  • [ ] v15.5.x
  • [ ] v15.6.x

☣️ Not officially supported, expect warnings and errors ☣️

  • [X ] v16.x.x

Which browser are you using?

✅ Officially supported ✅

  • [ ] IE 9 / IE 10 / IE 11
  • [ ] Edge
  • [X ] Chrome

⚠️ Not officially supported, but "should work" ⚠️

  • [ ] Firefox
  • [ ] Safari

I'm submitting a ...

  • [X ] 🐛 Bug Report
  • [ ] 💡 Feature Request

👋 Need general support? Not sure about how to use React itself, or how to get started with the Grid? Please do not submit support request here. Instead see

https://github.com/adazzle/react-data-grid/blob/master/CONTRIBUTING.md


Issue Details

When I resize the window same column cells disappear. I debug the library and I find what hepped. Into ViewportScrollMixin module is defined componentWillReceiveProps livecycle hook that call updateScroll function. The problem for my opinion is that when call updateScroll without last parameter width the function getRenderedColumnCount consider this.props.columnMetrics.totalWidth that is not updated.

--

francesc79 avatar Jan 19 '18 16:01 francesc79

Facing similar issue while increasing the width of a column and then horizontal scroll to right.

animeshkayal avatar Feb 15 '18 05:02 animeshkayal

i have the same problem

zyxelvincenzo79 avatar Feb 22 '18 14:02 zyxelvincenzo79

I have same issue and is currently looking for a table solution :-) Any progress on this :-) ?

thupi avatar Mar 05 '18 10:03 thupi

@thupi I opened a PR, the bug was just fix, I'm waiting the merge with master. If you want try the fix you can checkout francesc79/react-data-grid branch zazos-issue-1087.

francesc79 avatar Mar 05 '18 10:03 francesc79

This is a known issue where sometimes the cell content is empty. We are actively working on improving the cell rendering logic and v4 should address this issue. In the meantime re-rendering grid seems like a potential solution

window.addEventListener('resize', () => {
   // Re-render grid
   // May be recalculate grid's minHeight
   const minHeight = ....;
   this.setState({ minHeight });
   // Or may be forceUpdate (not a huge fan of this approach)
   this.forceUpdate();
});

amanmahajan7 avatar Mar 13 '18 02:03 amanmahajan7

Hi Aman, Kindly let us know when can we expect the V4 release?

animeshkayal avatar Mar 28 '18 12:03 animeshkayal

Is this fixed in any of the v4 releases?

rlreamy avatar Jun 01 '18 20:06 rlreamy

I think the bug still exists in v4.

kevyu avatar Jun 05 '18 06:06 kevyu

Please check the change log for what is included in v4. We recently merged a PR that improves cell rendering logic and will fix this particular issue. It is a big rewrite and we discovered a few bugs during internal testing. This is being actively worked on but at this moment we do not know when this will be released. I will keep you all posted.

amanmahajan7 avatar Jun 06 '18 19:06 amanmahajan7

Hi, any update on this? Or at least could you bump @next on NPM with the PR you mentioned @amanmahajan7 ? Thanks.

MickaToast avatar Jun 17 '18 19:06 MickaToast

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please reopen this if you feel it has been incorrectly closed and we will do our best to look into it. Thank you for your contributions.

stale[bot] avatar Jul 18 '18 07:07 stale[bot]

Is there any update on this? It looks like it was supposed to be fixed in v4.

rlreamy avatar Jul 18 '18 13:07 rlreamy

Any update on this?

vellov avatar Aug 01 '18 11:08 vellov

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please reopen this if you feel it has been incorrectly closed and we will do our best to look into it. Thank you for your contributions.

stale[bot] avatar Aug 31 '18 11:08 stale[bot]