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

Commit 93a5c36

Browse files
Yue-Wang-GoogleAdlai Holler
authored andcommitted
Fixed typo in ASCollectionViewFlowLayoutInspector.m pertaining to supplementary node layout. (#1996)
Patch from iOS teams at Google Inc.
1 parent f0b1f12 commit 93a5c36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

AsyncDisplayKit/Details/ASCollectionViewFlowLayoutInspector.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ - (ASSizeRange)collectionView:(ASCollectionView *)collectionView constrainedSize
166166
if (_layout.scrollDirection == UICollectionViewScrollDirectionVertical) {
167167
constrainedSize = CGSizeMake(CGRectGetWidth(collectionView.bounds), supplementarySize.height);
168168
} else {
169-
constrainedSize = CGSizeMake(supplementarySize.height, CGRectGetHeight(collectionView.bounds));
169+
constrainedSize = CGSizeMake(supplementarySize.width, CGRectGetHeight(collectionView.bounds));
170170
}
171171
return ASSizeRangeMake(CGSizeZero, constrainedSize);
172172
}

0 commit comments

Comments
 (0)