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);
|
super.addViewInLayout(child, idx - clippedSoFar, sDefaultLayoutParam, true);
|
||||||
invalidate();
|
invalidate();
|
||||||
needUpdateClippingRecursive = true;
|
needUpdateClippingRecursive = true;
|
||||||
} else if (intersects && !clippingRect.contains(sHelperRect)) {
|
} else if (intersects) {
|
||||||
// View is partially clipped.
|
// If there is any intersection we need to inform the child to update its clipping rect
|
||||||
needUpdateClippingRecursive = true;
|
needUpdateClippingRecursive = true;
|
||||||
}
|
}
|
||||||
if (needUpdateClippingRecursive) {
|
if (needUpdateClippingRecursive) {
|
||||||
|
|
Loading…
Reference in New Issue