Only add UIView nodes to Yoga where they are enabled
Summary: Only add UIView nodes to Yoga where they are enabled. We check for it in `isLeaf` but I think we should also check for them in the check for sub views. Closes https://github.com/facebook/yoga/pull/609 Reviewed By: emilsjolander Differential Revision: D5643387 Pulled By: dshahidehpour fbshipit-source-id: a85c62b6b2e0120b2913e7f2df8b094d43ca49a6
This commit is contained in:
committed by
Facebook Github Bot
parent
4185a44393
commit
c20f2864ab
@@ -361,7 +361,7 @@ static void YGAttachNodesFromViewHierachy(UIView *const view)
|
||||
|
||||
NSMutableArray<UIView *> *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];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user