For clippedSubViews, pass down the opportunity for children views to update their clipping if they intersect at all

Reviewed By: astreet

Differential Revision: D2717903

fb-gh-sync-id: 8852a6d3ac3a329c4cad663e7f9f7093f9b6ae16
This commit is contained in:
Dave Miller 2015-12-04 03:22:43 -08:00 committed by facebook-github-bot-4
parent 70f0dfc0e6
commit 4661e59d1a
1 changed files with 2 additions and 2 deletions

View File

@ -304,8 +304,8 @@ public class ReactViewGroup extends ViewGroup implements
super.addViewInLayout(child, idx - clippedSoFar, sDefaultLayoutParam, true);
invalidate();
needUpdateClippingRecursive = true;
} else if (intersects && !clippingRect.contains(sHelperRect)) {
// View is partially clipped.
} else if (intersects) {
// If there is any intersection we need to inform the child to update its clipping rect
needUpdateClippingRecursive = true;
}
if (needUpdateClippingRecursive) {