react-component / react-component/table
Columns header not aligned with the body when using vertical scroll
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.4k
- Forks
- 618
- Avg merge
- 10h 19m
- Merged PRs (30d)
- 2
Description
I created a demo using vertical scroll. I realized that, after that, the rc-table component created 2 tables for rendering - see here
Then I set a small width for column "title1" and I set the ellipsis prop for all the columns.
In this scenario, the column was wrongly rendered since the width of the cells are lower than the width of the header.

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the linked CodeSandbox demo with vertical scrolling, a narrow "title1" column, and ellipsis on all columns. Inspect the two rendered tables and compare header and body cell widths; the issue is done when the affected column aligns correctly in both sections.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100