You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.
开启虚模式,当表格渲染完毕后,竖直滚动到中间部分,此时将表格的父容器设置为
display:none
,然后在设置回display:block
,可复现问题。排查了一下,发现是
updateRowHeightManager
中在display:none
时记录了空白的行高(代码块中616行)。ali-react-table/packages/ali-react-table/src/base-table/table.tsx
Lines 598 to 617 in 847cc65
因为
display:none
会导致表格的宽高变成0,此时也会进行重渲染,渲染又会去计算要渲染的区域,因为上面的步骤有空白的行高,导致这里滚动条发生变化,等再次设为display:block
时滚动条就会发生跳动了...ali-react-table/packages/ali-react-table/src/base-table/table.tsx
Lines 408 to 409 in 847cc65
想请教下,在
updateRowHeightManager
中发生行存在0高度时是否可以不记住此时的高度?我修改成这样可以解决问题。还是说当表格不可见时,updateRowHeightManager
就不应该执行?还望赐教。The text was updated successfully, but these errors were encountered: