semi-design
semi-design copied to clipboard
[Table] 虚拟化列表滚动没显示全
Is there an existing issue for this?
- [X] I have searched the existing issues
Which Component
Table
Semi Version
latest
Current Behavior
有水平滚动轴时,scrollToItem 没有展示全行的内容
和水平滚动轴高度有关,react-window VariableSizeList 出现水平滚动轴有类似问题。
https://codesandbox.io/s/react-window-scrolltoitem-fbyne3
Expected Behavior
可以完全显示出来行内容
Steps To Reproduce
No response
ReproducibleCode
No response
Environment
- OS:
- browser:
Anything else?
No response
这是一个样式问题。与我们虚拟列表使用 react-window 的 VariableSizeList 有关。
VariableSizeList 在计算滚动高度时没有考虑水平滚动轴的影响。如果用 VariableSizeGrid,则没有这个问题。