Notify ASCellNodeDelegate even if a relayout doesn't result in a resize

If the delegate is an ASTableView, relayoutAnimation will still be considered for animation.
This commit is contained in:
Huy Nguyen
2015-10-29 21:26:06 +02:00
parent 5b8f7e978d
commit fb18e7635b
5 changed files with 11 additions and 27 deletions

View File

@@ -901,7 +901,7 @@ static BOOL _isInterceptedSelector(SEL sel)
#pragma mark - ASCellNodeDelegate
- (void)node:(ASCellNode *)node didRelayoutToNewSize:(CGSize)newSize suggestedAnimation:(ASCellNodeAnimation)animation
- (void)node:(ASCellNode *)node didRelayoutWithSuggestedAnimation:(ASCellNodeAnimation)animation
{
ASDisplayNodeAssertMainThread();
NSIndexPath *indexPath = [self indexPathForNode:node];