Pin collection cellNode.frame = contentView.bounds (#2884)

This commit is contained in:
Adlai Holler
2017-01-11 12:47:12 -08:00
committed by GitHub
parent cdf7f70747
commit 98a95a6907

View File

@@ -121,6 +121,15 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell";
self.layoutAttributes = layoutAttributes;
}
/**
* Keep our node filling our content view.
*/
- (void)layoutSubviews
{
[super layoutSubviews];
self.node.frame = self.contentView.bounds;
}
@end
#pragma mark -