mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
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:
committed by
facebook-github-bot-4
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) {
|
||||
|
||||
Reference in New Issue
Block a user