Skip to content

Commit

Permalink
ReactScrollView should account for overflow: scroll
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mcolotto authored and facebook-github-bot committed Sep 25, 2018
1 parent 1323acd commit 201f2f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ protected void onDraw(Canvas canvas) {
switch (mOverflow) {
case ViewProps.VISIBLE:
break;
case ViewProps.HIDDEN:
default:
canvas.clipRect(mRect);
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ public void draw(Canvas canvas) {
switch (mOverflow) {
case ViewProps.VISIBLE:
break;
case ViewProps.HIDDEN:
default:
canvas.clipRect(mRect);
break;
}
Expand Down

0 comments on commit 201f2f1

Please sign in to comment.