semi-design icon indicating copy to clipboard operation
semi-design copied to clipboard

[Table] 虚拟化列表滚动没显示全

Open shijiatongxue opened this issue 2 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Which Component

Table

Semi Version

latest

Current Behavior

有水平滚动轴时,scrollToItem 没有展示全行的内容

image

和水平滚动轴高度有关,react-window VariableSizeList 出现水平滚动轴有类似问题。

https://codesandbox.io/s/react-window-scrolltoitem-fbyne3

image

Expected Behavior

可以完全显示出来行内容

Steps To Reproduce

No response

ReproducibleCode

No response

Environment

- OS:
- browser:

Anything else?

No response

shijiatongxue avatar Jul 07 '22 04:07 shijiatongxue

这是一个样式问题。与我们虚拟列表使用 react-window 的 VariableSizeList 有关。

VariableSizeList 在计算滚动高度时没有考虑水平滚动轴的影响。如果用 VariableSizeGrid,则没有这个问题。

shijiatongxue avatar Sep 02 '22 03:09 shijiatongxue