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

ListContainerView 使用 ScrollView 时,点击 segment ,ListContainerView contentOffset 计算有问题 #125

Open
zzyy3321 opened this issue Sep 22, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@zzyy3321
Copy link

JXSegmentedListContainerView使用 ScrollView时。
segment.isContentScrollViewClickTransitionAnimationEnabled=true

segmentedView(_ segmentedView: JXSegmentedView, didSelectedItemAt index: Int)方法中,使用改变高度约束的方式 containerView高度。
会出现containerView``contentOffset 计算出现问题,多增加一个childView宽度。(滑动 ListContainer不会出现此问题)
取消动画就会好。
这个大概是哪里出了问题?

@zzyy3321
Copy link
Author

而如果使用 CollectionView 会出现滑动后IndicatorLineView位置不准的情况。

@mykoma
Copy link

mykoma commented Dec 11, 2023

我也遇到了同样的问题:
在这个页面出现了修改Layout约束,导致了点击JXSegmentedView时,listContainer显示的页面不是自己期望的页面(但在listContainer左右滑动却没有这样的问题)
解决方案:让自己的layout代码,延时了500ms~~~~

@pujiaxin33 pujiaxin33 added the bug Something isn't working label Jul 9, 2024
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

3 participants