diff --git a/yoga/algorithm/PixelGrid.cpp b/yoga/algorithm/PixelGrid.cpp index 61de2be2e8..5c5a3b7ffb 100644 --- a/yoga/algorithm/PixelGrid.cpp +++ b/yoga/algorithm/PixelGrid.cpp @@ -128,6 +128,9 @@ void roundLayoutResultsToPixelGrid( } for (yoga::Node* child : node->getChildren()) { + if (child->getOwner() != node) { + continue; + } roundLayoutResultsToPixelGrid(child, absoluteNodeLeft, absoluteNodeTop); } }