Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

code style

  • Loading branch information...
commit 38ab15a451cffcd06c80a6639eb60cd9267c0c39 1 parent f5e0bd8
@steipete authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 PSTCollectionView/PSTCollectionView.m
View
8 PSTCollectionView/PSTCollectionView.m
@@ -685,7 +685,7 @@ - (CGRect)makeRect:(CGRect)targetRect toScrollPosition:(PSTCollectionViewScrollP
CGFloat calculateX;
CGFloat calculateY;
- switch(verticalPosition){
+ switch(verticalPosition) {
case PSTCollectionViewScrollPositionCenteredVertically:
calculateY = targetRect.origin.y-((frame.size.height/2)-(targetRect.size.height/2));
targetRect = CGRectMake(targetRect.origin.x, calculateY, targetRect.size.width, frame.size.height);
@@ -698,9 +698,9 @@ - (CGRect)makeRect:(CGRect)targetRect toScrollPosition:(PSTCollectionViewScrollP
calculateY = targetRect.origin.y-(frame.size.height-targetRect.size.height);
targetRect = CGRectMake(targetRect.origin.x, calculateY, targetRect.size.width, frame.size.height);
break;
- };
+ }
- switch(horizontalPosition){
+ switch(horizontalPosition) {
case PSTCollectionViewScrollPositionCenteredHorizontally:
calculateX = targetRect.origin.x-((frame.size.width/2)-(targetRect.size.width/2));
targetRect = CGRectMake(calculateX, targetRect.origin.y, frame.size.width, targetRect.size.height);
@@ -714,7 +714,7 @@ - (CGRect)makeRect:(CGRect)targetRect toScrollPosition:(PSTCollectionViewScrollP
calculateX = targetRect.origin.x-(frame.size.width-targetRect.size.width);
targetRect = CGRectMake(calculateX, targetRect.origin.y, frame.size.width, targetRect.size.height);
break;
- };
+ }
return targetRect;
}
Please sign in to comment.
Something went wrong with that request. Please try again.