Skip to content

Commit

Permalink
Fixes ScrollView contentInsetAdjustmentBehavior assignment (facebook#…
Browse files Browse the repository at this point in the history
…41879)

Summary:
Fixes ScrollView contentInsetAdjustmentBehavior wrong assignment

## Changelog:

[IOS] [FIXED] - Fixes ScrollView contentInsetAdjustmentBehavior assignment

Pull Request resolved: facebook#41879

Test Plan: None.

Reviewed By: cortinico

Differential Revision: D52031541

Pulled By: NickGerleman

fbshipit-source-id: 283e260fa40d2eff0202b5f8140b1c087d3124d5
  • Loading branch information
zhongwuzw authored and Othinn committed Jan 9, 2024
1 parent 1405b55 commit cfa9c94
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 cfa9c94

Please sign in to comment.