iPad: Set correct sourceRect for the popover anchored on the central 'Add' button
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
parent
b3515c937e
commit
3269bb476a
|
@ -113,6 +113,7 @@ class TunnelsListTableViewController: UIViewController {
|
|||
alert.popoverPresentationController?.barButtonItem = sender
|
||||
} else if let sender = sender as? UIView {
|
||||
alert.popoverPresentationController?.sourceView = sender
|
||||
alert.popoverPresentationController?.sourceRect = sender.bounds
|
||||
}
|
||||
self.present(alert, animated: true, completion: nil)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue