Skip to content

Commit

Permalink
Merge pull request #303 from xuning0/bugfix/Dropdown
Browse files Browse the repository at this point in the history
Fix dropdown position
  • Loading branch information
mikaoj authored Oct 20, 2020
2 parents 750f26a + 87aa356 commit 7ac53be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class DropdownPresentationController: UIPresentationController {
// We can't use the frame directly since iOS 13 new modal presentation style
let navigationRect = navigationBar.convert(navigationBar.bounds, to: nil)
let presentingRect = presentingView.convert(presentingView.frame, to: containerView)
position = CGPoint(x: presentingRect.origin.x, y: presentingRect.origin.y + navigationRect.height)
position = CGPoint(x: presentingRect.origin.x, y: navigationRect.maxY)

// Match color with navigation bar
presentedViewController.view.backgroundColor = navigationBar.barTintColor
Expand Down

0 comments on commit 7ac53be

Please sign in to comment.