mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Allow overflow scroll to clip the view instead of let it be visible
Summary: When the overflow style set to 'scroll', React ViewGroup does nothing to the container. Instead it should be clipped just like hidden. Changelog: [Android][Changed] - Setting `overflow: scroll` in View component style will clip the children in the View container Reviewed By: javache Differential Revision: D31350605 fbshipit-source-id: e0d618f5e872fec9cf9ecb2d4cfe7af9a2f3c063
This commit is contained in:
committed by
Facebook GitHub Bot
parent
36f3bf2f58
commit
93beb83abe
@@ -786,6 +786,7 @@ public class ReactViewGroup extends ViewGroup
|
||||
}
|
||||
break;
|
||||
case ViewProps.HIDDEN:
|
||||
case ViewProps.SCROLL:
|
||||
float left = 0f;
|
||||
float top = 0f;
|
||||
float right = getWidth();
|
||||
|
||||
Reference in New Issue
Block a user