This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Tests; | |
| use Exception; | |
| use Statamic\Facades\User; | |
| use Statamic\Stache\Stache; | |
| use Statamic\Entries\Entry; | |
| trait WithStatamicEntryFaking |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (UICollectionViewLayoutAttributes *)layoutAttributesForItemAtIndexPath:(NSIndexPath *)indexPath | |
| { | |
| UICollectionViewLayoutAttributes *currentItemAttributes = [super layoutAttributesForItemAtIndexPath:indexPath]; | |
| CGFloat topInset = [self.delegate collectionView:self.collectionView layout:self insetForSectionAtIndex:indexPath.section].top; | |
| // First row should be aligned at the top | |
| if (indexPath.item < self.numColumns){ | |
| currentItemAttributes.frame = ({ | |
| CGRect frame = currentItemAttributes.frame; | |
| frame.origin.y = topInset + 0; |