From 84866da2883411afca83a3dc81b4e5ff6b8d460b Mon Sep 17 00:00:00 2001 From: Sam Mueller Date: Thu, 7 Feb 2019 09:32:58 -0800 Subject: [PATCH] Revert change c20f286 to avoid exception 'CALayer position contains NaN: [nan nan]' --- YogaKit/Source/YGLayout.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YogaKit/Source/YGLayout.m b/YogaKit/Source/YGLayout.m index 7779c437..aedeb2f1 100644 --- a/YogaKit/Source/YGLayout.m +++ b/YogaKit/Source/YGLayout.m @@ -400,7 +400,7 @@ static void YGAttachNodesFromViewHierachy(UIView *const view) NSMutableArray *subviewsToInclude = [[NSMutableArray alloc] initWithCapacity:view.subviews.count]; for (UIView *subview in view.subviews) { - if (subview.yoga.isEnabled && subview.yoga.isIncludedInLayout) { + if (subview.yoga.isIncludedInLayout) { [subviewsToInclude addObject:subview]; } }