mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix RemoveClipped subviews algorithm
Summary: For real this time, the change was lost due to some merge conflict Changelog: [Internal] Reviewed By: Abbondanzo Differential Revision: D73726167 fbshipit-source-id: 1e0cef75f59a166d795922266365b2b7b060472e
This commit is contained in:
committed by
Facebook GitHub Bot
parent
319ba0afd2
commit
eb2f6b1ae5
+1
-1
@@ -521,7 +521,7 @@ public class ReactViewGroup extends ViewGroup
|
||||
// therefore invalidation is not necessary.
|
||||
removeViewInLayout(child);
|
||||
needUpdateClippingRecursive = true;
|
||||
} else if (shouldSkipView || (intersects && isViewClipped(child, idx))) {
|
||||
} else if ((shouldSkipView || intersects) && isViewClipped(child, idx)) {
|
||||
int adjustedIdx = idx - clippedSoFar;
|
||||
Assertions.assertCondition(adjustedIdx >= 0);
|
||||
setViewClipped(child, false);
|
||||
|
||||
Reference in New Issue
Block a user