Reverted commit D3855801
Summary: @public Introduce `overflow:scroll` so that scrolling can be implemented without the current overflow:visible hackiness. Currently we use AT_MOST to measure in the cross axis but not in the main axis. This was done to enable scrolling containers where children are not constraint in the main axis by their parent. This caused problems for non-scrolling containers though as it meant that their children cannot be measured correctly in the main axis. Introducing `overflow:scroll` fixes this. Reviewed By: astreet Differential Revision: D3855801
This commit is contained in:
Родитель
62756d8be1
Коммит
173795c816
|
@ -151,10 +151,9 @@ import com.facebook.react.uimanager.ReactClippingViewGroupHelper;
|
||||||
invalidate();
|
invalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@ReactProp(name = "overflow")
|
||||||
public void setOverflow(String overflow) {
|
public final void setOverflow(String overflow) {
|
||||||
super.setOverflow(overflow);
|
mClipToBounds = "hidden".equals(overflow);
|
||||||
mClipToBounds = !"visible".equals(overflow);
|
|
||||||
if (mClipToBounds) {
|
if (mClipToBounds) {
|
||||||
mOverflowsContainer = false;
|
mOverflowsContainer = false;
|
||||||
if (mClipRadius > DrawView.MINIMUM_ROUNDED_CLIPPING_VALUE) {
|
if (mClipRadius > DrawView.MINIMUM_ROUNDED_CLIPPING_VALUE) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче