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
commit36f7340daadd534dfac41ced6e359d6123247378 (patch)
tree22d3d7a53d2777fdae8ccb597c35a41c7d9f7985
parentringlogger: document races (diff)
downloadwireguard-apple-36f7340daadd534dfac41ced6e359d6123247378.tar.xz
wireguard-apple-36f7340daadd534dfac41ced6e359d6123247378.zip
macOS: ButtonedDetailViewController: Set min dimensions
-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
}