Skip to content

Commit

Permalink
Fixes ScrollView contentInsetAdjustmentBehavior assignment (#41879)
Browse files Browse the repository at this point in the history
Summary:
Fixes ScrollView contentInsetAdjustmentBehavior wrong assignment

## Changelog:

[IOS] [FIXED] - Fixes ScrollView contentInsetAdjustmentBehavior assignment

Pull Request resolved: #41879

Test Plan: None.

Reviewed By: cortinico

Differential Revision: D52031541

Pulled By: NickGerleman

fbshipit-source-id: 283e260fa40d2eff0202b5f8140b1c087d3124d5
  • Loading branch information
zhongwuzw authored and facebook-github-bot committed Dec 12, 2023
1 parent cdef53d commit 86df742
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ - (void)updateProps:(const Props::Shared &)props oldProps:(const Props::Shared &
} 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;
}
Expand Down

0 comments on commit 86df742

Please sign in to comment.