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

Commit 1f00231

Browse files
maickigarrettmoon
authored andcommitted
Just call super to change the size of the cell node that will resize itself instead of setting the frame directly (#2725)
1 parent 292c1d0 commit 1f00231

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

AsyncDisplayKit/ASCellNode.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ - (void)layoutDidFinish
121121
- (void)_locked_displayNodeDidInvalidateSizeNewSize:(CGSize)newSize
122122
{
123123
CGSize oldSize = self.bounds.size;
124+
[super _locked_displayNodeDidInvalidateSizeNewSize:newSize];
124125
if (CGSizeEqualToSize(oldSize, newSize) == NO) {
125-
self.frame = {self.frame.origin, newSize};
126126
[self didRelayoutFromOldSize:oldSize toNewSize:newSize];
127127
}
128128
}

0 commit comments

Comments
 (0)