table icon indicating copy to clipboard operation
table copied to clipboard

rc-table with resize and scroll props lags between the header and the body

Open ivanmontiel-lw opened this issue 4 years ago • 8 comments

  • [X] I have searched the issues of this repository and believe that this is not a duplicate.
    • Note: I have seen a few similar issues with many rows and performance, but none specifically for resizing.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. Use Ant Table (or the rc-table directly), with code to implement the column resize behavior and scroll y.
  2. Try to resize the column
  3. The more rows rendered, the more the problem is noticeable.

What is expected?

No performance issues. Header cell widths and row columns widths stay the same.

What is actually happening?

There is noticeable lag of the header cells and desync between header widths and row widths.

Environment Info
antd 4.6.1
React 16.12.0
System Mac OS X
Browser Chrome 84.0.4147.125

From investigating, when the scroll y prop and column widths are updated, every row in the table is re-rendered when the column is resized.

Copied from https://github.com/ant-design/ant-design/issues/26475.

ivanmontiel-lw avatar Aug 31 '20 17:08 ivanmontiel-lw

Guys pay attention to this please. Performance drops noticeably

afl1986 avatar Mar 02 '21 11:03 afl1986

I am very concerned about this issue, user experience very bad

hoanmq avatar Mar 23 '21 10:03 hoanmq

Hello!

Any news on the solution?

german-st avatar Jun 06 '21 18:06 german-st

I have the same problem

vladimircherevko avatar Jun 17 '21 18:06 vladimircherevko

The same problem

snoweastcn avatar Jun 23 '21 10:06 snoweastcn

+1, the problem is still relevant.

vitaliymaz avatar Aug 03 '21 15:08 vitaliymaz

Bump. It is a pretty annoying bug.

ilteoood avatar Aug 13 '21 09:08 ilteoood

Hi! do you believe this issue will be inspected anytime soon?

gianmarco27 avatar Oct 25 '21 14:10 gianmarco27