aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-02-15 15:44:06 +0530
committerRoopesh Chander <roop@roopc.net>2019-02-15 15:44:11 +0530
commit910fdfc32126e5ce158c5f9c927ae89b7f0e7f36 (patch)
tree55091f4248c74e0582cbe9947504cd02ad8dbb00 /WireGuard
parentmacOS: Tunnels list: Use constant width for the table view (diff)
downloadwireguard-apple-910fdfc32126e5ce158c5f9c927ae89b7f0e7f36.tar.xz
wireguard-apple-910fdfc32126e5ce158c5f9c927ae89b7f0e7f36.zip
macOS: Tunnel detail: Set min width/height
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard')
-rw-r--r--WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift5
1 files changed, 5 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift
index 411fe57..b6dff65 100644
--- a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift
+++ b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift
@@ -162,6 +162,11 @@ class TunnelDetailTableViewController: NSViewController {
scrollView.trailingAnchor.constraint(equalTo: box.trailingAnchor)
])
+ NSLayoutConstraint.activate([
+ containerView.widthAnchor.constraint(greaterThanOrEqualToConstant: 320),
+ containerView.heightAnchor.constraint(greaterThanOrEqualToConstant: 120)
+ ])
+
view = containerView
}