table
table copied to clipboard
rc-table with resize and scroll props lags between the header and the body
- [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
Steps to reproduce
- Use Ant Table (or the rc-table directly), with code to implement the column resize behavior and scroll y.
- Try to resize the column
- 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.
Guys pay attention to this please. Performance drops noticeably
I am very concerned about this issue, user experience very bad
Hello!
Any news on the solution?
I have the same problem
The same problem
+1, the problem is still relevant.
Bump. It is a pretty annoying bug.
Hi! do you believe this issue will be inspected anytime soon?