Proper relayout if size changes

This commit is contained in:
Michael Schneider
2016-11-14 10:10:47 -08:00
parent 0eb882bae5
commit dcc54c0d36
4 changed files with 25 additions and 2 deletions

View File

@@ -1568,6 +1568,11 @@ static NSString * const kCellReuseIdentifier = @"_ASTableViewCell";
}
}
- (ASSizeRange)constrainedSizeForNode:(ASCellNode *)node
{
return [self dataController:self.dataController constrainedSizeForNodeAtIndexPath:[self indexPathForNode:node]];
}
- (void)nodeDidRelayout:(ASCellNode *)node sizeChanged:(BOOL)sizeChanged
{
ASDisplayNodeAssertMainThread();