Permalink
Browse files

Make it so the grid layout no longer forces the rects to be integer a…

…ligned, this is closer to the native collection layout behaviour.
  • Loading branch information...
1 parent 21c0318 commit e27e47062b58eaf4ee8c18fc12514dd751058021 @kurt-schaefer kurt-schaefer committed Mar 11, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 PSTCollectionView/PSTGridLayoutRow.m
@@ -149,8 +149,8 @@ - (NSArray *)layoutRowAndGenerateRectArray:(BOOL)generateRectArray {
itemOffset.x += interSpacing;
}
}
- item.itemFrame = CGRectIntegral(itemFrame); // might call nil; don't care
- [rects addObject:[NSValue valueWithCGRect:CGRectIntegral(itemFrame)]];
+ item.itemFrame = itemFrame; // might call nil; don't care
+ [rects addObject:[NSValue valueWithCGRect:itemFrame]];
frame = CGRectUnion(frame, itemFrame);
}
_rowSize = frame.size;

0 comments on commit e27e470

Please sign in to comment.