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

JXPagerSmoothView reloadData 会自动滑动到最顶部 #473

Open
1knight520 opened this issue Mar 21, 2023 · 2 comments
Open

JXPagerSmoothView reloadData 会自动滑动到最顶部 #473

1knight520 opened this issue Mar 21, 2023 · 2 comments
Labels
question Further information is requested

Comments

@1knight520
Copy link

JXPagerSmoothView reloadData 会重复绘制list
list里面请求新闻接口,此时告知外部请求首页接口刷新 需要动态heightForPagerHeaderInPagerView高度 ,reloadData,又重新执行list里面的接口
没有单独的刷新高度 不重新绘制list吗

@1knight520
Copy link
Author

JXPagerSmoothView reloadData重新绘制解决了 缓存一下
但是 整个reloadData后 如果滑动到中间 这时候接口请求结束了 会自动滑动到最顶部 这个怎么处理呢

@1knight520 1knight520 changed the title JXPagerSmoothView reloadData 会重复绘制list JXPagerSmoothView reloadData 会自动滑动到最顶部 Mar 22, 2023
@pujiaxin33
Copy link
Owner

因为内部管理了太多的状态了,在reloadData的时候需要重置currentPagerHeaderContainerViewY,这样可以避免其他问题。

@pujiaxin33 pujiaxin33 added the question Further information is requested label Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants