Skip to content

Commit

Permalink
[iOS] Fixes ScrollView contentInsetAdjustmentBehavior assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongwuzw committed Dec 11, 2023
1 parent 6e88d67 commit cd76e81
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 cd76e81

Please sign in to comment.