Skip to content

Commit

Permalink
πŸ› Fix sticky content causing scrolling in dialog modals
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaatttt committed May 9, 2022
1 parent ea3d263 commit e9468b3
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ internal class ExperienceStepViewController: UIViewController {
override func preferredContentSizeDidChange(forChildContentContainer container: UIContentContainer) {
super.preferredContentSizeDidChange(forChildContentContainer: container)

preferredContentSize = stepView.scrollView.contentSize
let contentSize = stepView.scrollView.contentSize
preferredContentSize = CGSize(
width: contentSize.width + additionalSafeAreaInsets.left + additionalSafeAreaInsets.right,
height: contentSize.height + additionalSafeAreaInsets.top + additionalSafeAreaInsets.bottom
)
}

}
Expand Down

0 comments on commit e9468b3

Please sign in to comment.