Skip to content

Commit

Permalink
Fix a 1px discrepancy between UIPageControl an SMPageControl alignemnt.
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryhjones committed Sep 3, 2013
1 parent 2cb2d93 commit 15849ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SMPageControl.m
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ - (CGFloat)_leftOffset
CGFloat left = 0.0f;
switch (_alignment) {
case SMPageControlAlignmentCenter:
left = CGRectGetMidX(rect) - (size.width / 2.0f);
left = ceilf(CGRectGetMidX(rect) - (size.width / 2.0f));
break;
case SMPageControlAlignmentRight:
left = CGRectGetMaxX(rect) - size.width;
Expand Down

0 comments on commit 15849ff

Please sign in to comment.