mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-01 13:03:08 +08:00
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:
committed by
Facebook Github Bot
parent
1323acd0bb
commit
201f2f189f
@@ -195,7 +195,7 @@ public class ReactHorizontalScrollView extends HorizontalScrollView implements
|
||||
switch (mOverflow) {
|
||||
case ViewProps.VISIBLE:
|
||||
break;
|
||||
case ViewProps.HIDDEN:
|
||||
default:
|
||||
canvas.clipRect(mRect);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user