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

当layout.itemSize = CGSizeMake(280.5, 300); 值有小数时,滑动会出现问题 #2

Open
qlkk opened this issue May 5, 2016 · 4 comments

Comments

@qlkk
Copy link

qlkk commented May 5, 2016


layout = [[HJCarouselViewLayout alloc] initWithAnim:HJCarouselAnimLinear];
layout.scrollDirection = UICollectionViewScrollDirectionHorizontal;
layout.itemSize = CGSizeMake(280.5, 300); 值有小数时,滑动会出现问题
layout.itemSize = CGSizeMake(309, 364);也会出现问题,都是第一行或者最后一行出现问题。
大神,你这个算法是怎么写的?有什么限制没?(6p上测试的)

@panghaijiao
Copy link
Owner

小数点我还没试过,我先试下

@qlkk
Copy link
Author

qlkk commented May 6, 2016

大神,有办法没?

@panghaijiao
Copy link
Owner

我初步看了下,怀疑是系统BUG,目前还没有找到解决方法,不过,你可以先避开这两个特殊值

@qlkk
Copy link
Author

qlkk commented May 6, 2016

谢了

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