aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-03-18 13:47:40 +0530
committerRoopesh Chander <roop@roopc.net>2019-03-19 01:28:52 +0530
commitbca9fead5e8a6a45335d5de1a284fbd1092e220c (patch)
tree22d3d7a53d2777fdae8ccb597c35a41c7d9f7985
parentringlogger: document races (diff)
downloadwireguard-apple-bca9fead5e8a6a45335d5de1a284fbd1092e220c.tar.xz
wireguard-apple-bca9fead5e8a6a45335d5de1a284fbd1092e220c.zip
macOS: ButtonedDetailViewController: Set min dimensions
Signed-off-by: Roopesh Chander <roop@roopc.net>
-rw-r--r--WireGuard/WireGuard/UI/macOS/ViewController/ButtonedDetailViewController.swift6
1 files changed, 6 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/ButtonedDetailViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/ButtonedDetailViewController.swift
index defa09f..09c2414 100644
--- a/WireGuard/WireGuard/UI/macOS/ViewController/ButtonedDetailViewController.swift
+++ b/WireGuard/WireGuard/UI/macOS/ViewController/ButtonedDetailViewController.swift
@@ -35,6 +35,12 @@ class ButtonedDetailViewController: NSViewController {
button.centerXAnchor.constraint(equalTo: view.centerXAnchor),
button.centerYAnchor.constraint(equalTo: view.centerYAnchor)
])
+
+ NSLayoutConstraint.activate([
+ view.widthAnchor.constraint(greaterThanOrEqualToConstant: 320),
+ view.heightAnchor.constraint(greaterThanOrEqualToConstant: 120)
+ ])
+
self.view = view
}