mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fixes ScrollView contentInsetAdjustmentBehavior assignment (#41879)
Summary: Fixes ScrollView contentInsetAdjustmentBehavior wrong assignment ## Changelog: [IOS] [FIXED] - Fixes ScrollView contentInsetAdjustmentBehavior assignment Pull Request resolved: https://github.com/facebook/react-native/pull/41879 Test Plan: None. Reviewed By: cortinico Differential Revision: D52031541 Pulled By: NickGerleman fbshipit-source-id: 283e260fa40d2eff0202b5f8140b1c087d3124d5
This commit is contained in:
committed by
Facebook GitHub Bot
parent
cdef53d662
commit
86df742e73
+1
-1
@@ -284,7 +284,7 @@ static void RCTSendScrollEventForNativeAnimations_DEPRECATED(UIScrollView *scrol
|
||||
} else if (contentInsetAdjustmentBehavior == ContentInsetAdjustmentBehavior::Automatic) {
|
||||
scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentAutomatic;
|
||||
} else if (contentInsetAdjustmentBehavior == ContentInsetAdjustmentBehavior::ScrollableAxes) {
|
||||
scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentAutomatic;
|
||||
scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentScrollableAxes;
|
||||
} else if (contentInsetAdjustmentBehavior == ContentInsetAdjustmentBehavior::Always) {
|
||||
scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentAlways;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user