mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
0df59d4f03
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/47280 Noticed in the screenshots of https://github.com/facebook/react-native/pull/47230 that Android's logic of setting scroll content origin to zero, then right aligning scroll offset, won't correctly handle case where content is smaller than scrolling container. We can fix that by only resetting the origin when content overflows container, since we otherwise are not scrollable, and scroll adjustment will not translate. Changelog: [Android][Fixed] - Fix RTL ScrollView position when content smaller than container Reviewed By: rshest Differential Revision: D65136654 fbshipit-source-id: 2818ff6360cbfac64d7e57bdcbbe8c0a9b4bbb97