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