react-native-macos/React/Views/ScrollView
zhongwuzw 2cdf9694b5 Fixes ScrollView centerContent not work in some cases (#24817)
Summary:
The bug description can see https://github.com/facebook/react-native/issues/24688, we add `contentView` size check before center the content, because in some cases, the contentView's size not yet be calculated, in those cases, we don't adjust the `contentOffset`.

cc. cpojer .

[iOS] [Fixed] - Fixes ScrollView centerContent not work in some cases
Pull Request resolved: https://github.com/facebook/react-native/pull/24817

Differential Revision: D15322502

Pulled By: sahrens

fbshipit-source-id: e2081f13e9f2e8597a379a9db1607451ea496909
2019-05-13 13:03:26 -07:00
..
RCTScrollContentShadowView.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTScrollContentShadowView.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTScrollContentView.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTScrollContentView.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTScrollContentViewManager.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTScrollContentViewManager.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTScrollView.h disable momentum scrolling for horizontal ScrollView (#24045) 2019-04-15 14:40:44 -07:00
RCTScrollView.m Fixes ScrollView centerContent not work in some cases (#24817) 2019-05-13 13:03:26 -07:00
RCTScrollViewManager.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTScrollViewManager.m disable momentum scrolling for horizontal ScrollView (#24045) 2019-04-15 14:40:44 -07:00
RCTScrollableProtocol.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00