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-09-25 15:00:05 -07:00
committed by Facebook Github Bot
parent 1323acd0bb
commit 201f2f189f
2 changed files with 2 additions and 2 deletions

View File

@@ -195,7 +195,7 @@ public class ReactHorizontalScrollView extends HorizontalScrollView implements
switch (mOverflow) {
case ViewProps.VISIBLE:
break;
case ViewProps.HIDDEN:
default:
canvas.clipRect(mRect);
break;
}

View File

@@ -384,7 +384,7 @@ public class ReactScrollView extends ScrollView implements ReactClippingViewGrou
switch (mOverflow) {
case ViewProps.VISIBLE:
break;
case ViewProps.HIDDEN:
default:
canvas.clipRect(mRect);
break;
}