Skip to content

Commit

Permalink
🐛 Fix unwanted scroll bouncing in dialog modals
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaatttt committed May 6, 2022
1 parent f08cc8f commit ea3d263
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ internal class AppcuesHostingController<Content: View>: UIHostingController<Cont
override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
view.setNeedsUpdateConstraints()
preferredContentSize = view.intrinsicContentSize
preferredContentSize = view.frame.size
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ internal class ExperienceStepViewController: UIViewController {
override func preferredContentSizeDidChange(forChildContentContainer container: UIContentContainer) {
super.preferredContentSizeDidChange(forChildContentContainer: container)

preferredContentSize = stepView.contentView.frame.size
preferredContentSize = stepView.scrollView.contentSize
}

}
Expand Down

0 comments on commit ea3d263

Please sign in to comment.