12207480 / TYCyclePagerView

a simple and usefull cycle pager view ,and auto scroll banner view(轮播图) ,include pageControl for iOS,support Objective-C and swift
MIT License
1.79k stars 329 forks source link

右对齐的时候,索引计算问题 #70

Closed JerryXst closed 4 years ago

JerryXst commented 5 years ago

case UIControlContentHorizontalAlignmentRight: orignX = CGRectGetWidth(self.frame) - ((_indicatorViews.count - 1) * (_pageIndicatorSize.width + _pageIndicatorSpaing) - _pageIndicatorSize.width) - _contentInset.right;

这个(_indicatorViews.count - 1)是不是应该从_indicatorViews.count开始滚动?

JerryXst commented 5 years ago

在TYPageControl.m文件的238行。