Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit 98a95a6

Browse files
author
Adlai Holler
authored
Pin collection cellNode.frame = contentView.bounds (#2884)
1 parent cdf7f70 commit 98a95a6

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

AsyncDisplayKit/ASCollectionView.mm

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,15 @@ - (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttribut
121121
self.layoutAttributes = layoutAttributes;
122122
}
123123

124+
/**
125+
* Keep our node filling our content view.
126+
*/
127+
- (void)layoutSubviews
128+
{
129+
[super layoutSubviews];
130+
self.node.frame = self.contentView.bounds;
131+
}
132+
124133
@end
125134

126135
#pragma mark -

0 commit comments

Comments
 (0)