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

onShow时组件并不能保证View渲染完毕 #637

Open
kekeS0 opened this issue Dec 15, 2023 · 0 comments
Open

onShow时组件并不能保证View渲染完毕 #637

kekeS0 opened this issue Dec 15, 2023 · 0 comments

Comments

@kekeS0
Copy link

kekeS0 commented Dec 15, 2023

1、在onReady、onShow中调用this.$page.scrollTo不生效,需要套一个定时器
2、getBoundingRect 容易获取不到数据,也需要套一个定时器
可以试试在onShow时,调用this.$page.scrollTo 使元素滚动一段距离,实测验证是不生效的,但是套一个延时器就正常了

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

1 participant