From 4661e59d1a9639f0a5c62d2c0dc88a6a19591b21 Mon Sep 17 00:00:00 2001 From: Dave Miller Date: Fri, 4 Dec 2015 03:22:43 -0800 Subject: [PATCH] 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 --- .../java/com/facebook/react/views/view/ReactViewGroup.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java b/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java index 9e2728db4..478208fab 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java @@ -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) {