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

高度为100%虚拟滚动不生效,需要使用px或者calc(100vh - 10px)转换 #34

Closed
Dnxbhhz opened this issue Jul 7, 2023 · 2 comments

Comments

@Dnxbhhz
Copy link

Dnxbhhz commented Jul 7, 2023

No description provided.

@wchbrad
Copy link
Owner

wchbrad commented Jul 7, 2023

100%不是有效的绝对像素单位,需要使用px或者calc(100vh - 10px)转换。虚拟滚动需要用到绝对单位计算应该展示多少个item等数据

@Dnxbhhz
Copy link
Author

Dnxbhhz commented Jul 7, 2023

100%不是有效的绝对像素单位,需要使用px或者calc(100vh - 10px)转换。虚拟滚动需要用到绝对单位计算应该展示多少个item等数据

改成calc就可以了,谢谢

@wchbrad wchbrad closed this as completed Jul 14, 2023
@wchbrad wchbrad changed the title 为什么高度谁为100%虚拟滚动不生效呢 高度为100%虚拟滚动不生效,需要使用px或者calc(100vh - 10px)转换 Jul 14, 2023
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