Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1578 from tomizimobile/master
Browse files Browse the repository at this point in the history
[ASCellNode] Remove nodeLoaded check that can cause some necessary layout passes to be skipped.
  • Loading branch information
appleguy committed Apr 22, 2016
2 parents 324a73f + 7eca4f2 commit 450c12e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AsyncDisplayKit/ASCellNode.m
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ - (void)transitionLayoutWithSizeRange:(ASSizeRange)constrainedSize

- (void)didRelayoutFromOldSize:(CGSize)oldSize toNewSize:(CGSize)newSize
{
if (_layoutDelegate != nil && self.isNodeLoaded) {
if (_layoutDelegate != nil) {
ASPerformBlockOnMainThread(^{
BOOL sizeChanged = !CGSizeEqualToSize(oldSize, newSize);
[_layoutDelegate nodeDidRelayout:self sizeChanged:sizeChanged];
Expand Down

0 comments on commit 450c12e

Please sign in to comment.