diff --git a/PSCollectionView.m b/PSCollectionView.m index 2e5d405..a674336 100644 --- a/PSCollectionView.m +++ b/PSCollectionView.m @@ -262,7 +262,7 @@ - (void)relayoutViews { CGFloat top = [[colOffsets objectAtIndex:col] floatValue]; CGFloat colHeight = [self.collectionViewDataSource collectionView:self heightForRowAtIndex:i]; - CGRect viewRect = CGRectMake(left, top, self.colWidth, colHeight); + CGRect viewRect = CGRectIntegral(CGRectMake(left, top, self.colWidth, colHeight)); // Add to index rect map [self.indexToRectMap setObject:NSStringFromCGRect(viewRect) forKey:key];