[Bug] 有分组,且冻结分组标题时,scrollToCell滚动至单元格时,冻结的分组标题会遮挡滚动目标单元格
Open
Nobody has claimed this yet.
bug
- Dominant language
- TypeScript
- Stars
- 3.7k
- Forks
- 486
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 16
Description
Version
1.19.3
Link to Minimal Reproduction
如题
Steps to Reproduce
如题
Current Behavior
如题
Expected Behavior
期望:
- 滚动时,允许用户设置一些自定义偏移,如:
// 分别在 x, y 方向自定义偏移量
table.scrollToCell({ col: 15, row: 180, offsetX: 30, offsetY: 60});
- 搜索组件 SearchComponent 的 search(string), prev(), next(), jumpToCell() 方法也需要考虑一下
是否有必要在此基础上判断是否有冻结的分组标题,并将其高度考虑在内?
Environment
- OS: Mac15
- Browser: Chrome 138
- Framework: React 18.3
Any additional comments?
No response
Contributor guide
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 with the scrollToCell entry point and the SearchComponent methods search(), prev(), next(), and jumpToCell(), using the issue's minimal reproduction details. Done means custom offsetX and offsetY values are supported and these search-driven jumps account for frozen grouped headers so the target cell is not obscured.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100