mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-04-23 03:20:39 +08:00
Revert "[Layout] Layout API based on content area (#2110)"
This reverts commit 8897614f0e.
This commit is contained in:
@@ -63,7 +63,7 @@ static const NSInteger kImageHeight = 200;
|
||||
- (ASLayoutSpec *)layoutSpecThatFits:(ASSizeRange)constrainedSize
|
||||
{
|
||||
self.collectionNode.position = CGPointZero;
|
||||
[self.collectionNode setSizeWithCGSize:constrainedSize.max];
|
||||
self.collectionNode.sizeRange = ASRelativeSizeRangeMakeWithExactCGSize(constrainedSize.max);
|
||||
return [ASStaticLayoutSpec staticLayoutSpecWithChildren:@[self.collectionNode]];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user