ReactScrollView should account for overflow: scroll

Summary:
Support for `overflow: visible` was recently added to Android ScrollView.
However, it didn't account for `overflow: scroll` and changed the behavior, causing content to render
when before it would be clipped.

Reviewed By: achen1

Differential Revision: D10036807

fbshipit-source-id: e44a79b18eecbc7d64621f7cf5d800a00a121b13
This commit is contained in:
Matias Colotto
2018-10-02 14:20:16 +02:00
committed by Mike Grabowski
parent 5906c26466
commit e6677b0ec8
2 changed files with 2 additions and 2 deletions
@@ -185,7 +185,7 @@ public class ReactHorizontalScrollView extends HorizontalScrollView implements
switch (mOverflow) {
case ViewProps.VISIBLE:
break;
case ViewProps.HIDDEN:
default:
canvas.clipRect(mRect);
break;
}
@@ -374,7 +374,7 @@ public class ReactScrollView extends ScrollView implements ReactClippingViewGrou
switch (mOverflow) {
case ViewProps.VISIBLE:
break;
case ViewProps.HIDDEN:
default:
canvas.clipRect(mRect);
break;
}