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

调用scrollToY方法会讲设置了position:fixed的元素也会顶出屏幕顶部 #172

Open
sx13694658890 opened this issue Nov 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@sx13694658890
Copy link

编译平台
使用HbuilderX还是npm方式编译出现的问题?(如:HbuilderX)

VUE版本
在vue2还是vue3中出现的问题,是nvue还是vue?(如:vue2+nvue)
vue3
运行平台
在运行到哪个平台中出现的问题?(如:App、微信小程序、h5)
小程序
z-paging版本
在哪个版本的z-paging中出现的问题?

问题描述
请详细描述问题,最好说明复现步骤,尽可能附上代码或截图

问题描述: 滚动child 有个class=header元素设置了position:fixed ,然后调用了scrolltoY滚动到某一元素位置 ,会将.header 顶到屏幕上方然后又消失掉

@sx13694658890 sx13694658890 added the bug Something isn't working label Nov 25, 2024
@SmileZXLee
Copy link
Owner

固定在顶部的放在slot=top内

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants