You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, subnodes of nodes marked with shouldRasterizeSubnodes do not get layout calls. This adds the call to layout and changes the __layout method to reference self.bounds instead of _layer.bounds.
Also adds support for corner radius when rasterizing subnodes.
Copy file name to clipboardExpand all lines: AsyncDisplayKit/ASDisplayNode.mm
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -612,10 +612,10 @@ - (void)__layout
612
612
{
613
613
ASDisplayNodeAssertMainThread();
614
614
ASDN::MutexLocker l(_propertyLock);
615
-
if (CGRectEqualToRect(_layer.bounds, CGRectZero)) {
615
+
if (CGRectEqualToRect(self.bounds, CGRectZero)) {
616
616
return; // Performing layout on a zero-bounds view often results in frame calculations with negative sizes after applying margins, which will cause measureWithSizeRange: on subnodes to assert.
0 commit comments