Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

Commit

Permalink
RCTView: Fix list views sometimes being empty
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavraja committed Mar 22, 2018
1 parent 9a3cad4 commit 1c7db70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion React/Views/RCTView.m
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ - (UIView *)react_findClipView
if (testView.clipsToBounds) {
if (clipView) {
CGRect testRect = [clipView convertRect:clipRect toView:testView];
if (!CGRectContainsRect(testView.bounds, testRect)) {
if (!CGRectContainsRect(testView.bounds, testRect) && !CGRectIsEmpty(CGRectIntersection(testView.bounds, testRect))) {
clipView = testView;
clipRect = CGRectIntersection(testView.bounds, testRect);
}
Expand Down

2 comments on commit 1c7db70

@fanzhiri
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for share

@JoschaP
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pranavraja: you're awesome!

Please sign in to comment.