Skip to content

Commit

Permalink
chore: Fix GistView constaints to avoid incorrectly scrolling content…
Browse files Browse the repository at this point in the history
… for message positioned top/bottom (#858)
  • Loading branch information
mahmoud-elmorabea authored Jan 29, 2025
1 parent 5919c08 commit 31ba347
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ class GistModalViewController: UIViewController, GistViewDelegate, DoNotTrackScr

switch position {
case .top:
verticalConstraint = gistView.topAnchor.constraint(equalTo: view.topAnchor)
verticalConstraint = gistView.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor)
case .center:
verticalConstraint = gistView.centerYAnchor.constraint(equalTo: view.centerYAnchor)
case .bottom:
verticalConstraint = gistView.bottomAnchor.constraint(equalTo: view.bottomAnchor)
verticalConstraint = gistView.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor)
case .none:
verticalConstraint = gistView.centerYAnchor.constraint(equalTo: view.centerYAnchor)
}
Expand Down

0 comments on commit 31ba347

Please sign in to comment.