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:
Xin Chen 2021-10-04 17:50:52 -07:00 коммит произвёл Facebook GitHub Bot
Родитель 36f3bf2f58
Коммит 93beb83abe
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -786,6 +786,7 @@ public class ReactViewGroup extends ViewGroup
} }
break; break;
case ViewProps.HIDDEN: case ViewProps.HIDDEN:
case ViewProps.SCROLL:
float left = 0f; float left = 0f;
float top = 0f; float top = 0f;
float right = getWidth(); float right = getWidth();