mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-04-13 08:46:35 +08:00
ASDisplayNode returns requestedLayoutSize by default
This commit is contained in:
@@ -1308,7 +1308,7 @@ static NSInteger incrementIfFound(NSInteger i) {
|
||||
- (CGSize)calculateSizeThatFits:(CGSize)constrainedSize
|
||||
{
|
||||
ASDisplayNodeAssertThreadAffinity(self);
|
||||
return CGSizeZero;
|
||||
return CGSizeMake(MIN(self.requestedLayoutSize.width, constrainedSize.width), MIN(self.requestedLayoutSize.height, constrainedSize.height));
|
||||
}
|
||||
|
||||
- (ASLayoutSpec *)layoutSpecThatFits:(ASSizeRange)constrainedSize
|
||||
|
||||
Reference in New Issue
Block a user