Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

虚拟滚动白屏 #277

Open
Koilzy opened this issue Nov 7, 2022 · 5 comments
Open

虚拟滚动白屏 #277

Koilzy opened this issue Nov 7, 2022 · 5 comments

Comments

@Koilzy
Copy link

Koilzy commented Nov 7, 2022

虚拟滚动数据不定高的情况下,滚动会出现白屏现象。请问怎么处理呢?

image

@baukh789
Copy link
Owner

baukh789 commented Nov 7, 2022

可以参考下相关的API,注意搭配合理的virtualNum

@Koilzy
Copy link
Author

Koilzy commented Nov 7, 2022

意思是virtualNum要设置得足够大,才不会有白屏现象吗

@baukh789
Copy link
Owner

baukh789 commented Nov 8, 2022

是的,virtualNum * 行高要超出当前表格的总高度

@Koilzy Koilzy closed this as completed Nov 10, 2022
@Koilzy Koilzy reopened this Nov 11, 2022
@Koilzy
Copy link
Author

Koilzy commented Nov 11, 2022

你好,新发现一个问题,虚拟滚动数据设置为10万条后,表格右侧滚动条拉到中间后再进行滚动,会有白屏现象
image
另外,如果表格的数据是不定高的情况开启虚拟滚动,滚动的时候会出现错位情况(比如滚动到1000行的时候可能下一秒会跳到800行这样子)。辛苦大佬看看哈!

@baukh789
Copy link
Owner

virtualNum的值找个合理的值,不要太大也不要太小。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants