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:
parent
70f0dfc0e6
commit
4661e59d1a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue