diff --git a/YogaKit/Source/YGLayout.m b/YogaKit/Source/YGLayout.m index df4a4821..70e6ed40 100644 --- a/YogaKit/Source/YGLayout.m +++ b/YogaKit/Source/YGLayout.m @@ -361,7 +361,7 @@ static void YGAttachNodesFromViewHierachy(UIView *const view) NSMutableArray *subviewsToInclude = [[NSMutableArray alloc] initWithCapacity:view.subviews.count]; for (UIView *subview in view.subviews) { - if (subview.yoga.isIncludedInLayout) { + if (subview.yoga.isEnabled && subview.yoga.isIncludedInLayout) { [subviewsToInclude addObject:subview]; } }