diff options
author | Roopesh Chander <roop@roopc.net> | 2018-11-07 19:43:36 +0530 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-11-07 17:43:30 +0100 |
commit | 85a19da487821aa1fe770900634a3a06b74ec851 (patch) | |
tree | 29f89ab2fad9b1aae42b87d80eb1cbacab6ff2d3 /WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift | |
parent | Info.plist: Register for handling public.text files for Open-in (diff) | |
download | wireguard-apple-85a19da487821aa1fe770900634a3a06b74ec851.tar.xz wireguard-apple-85a19da487821aa1fe770900634a3a06b74ec851.zip |
iPad: Ensure we set sourceRect for all cases where we use sourceView
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to '')
-rw-r--r-- | WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift index 40d86e9..3af97da 100644 --- a/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift @@ -400,6 +400,7 @@ extension TunnelEditTableViewController { // popoverPresentationController will be nil on iPhone and non-nil on iPad alert.popoverPresentationController?.sourceView = sourceView + alert.popoverPresentationController?.sourceRect = sourceView.bounds self.present(alert, animated: true, completion: nil) } |