diff options
author | 2019-03-18 13:47:40 +0530 | |
---|---|---|
committer | 2019-03-19 01:28:52 +0530 | |
commit | bca9fead5e8a6a45335d5de1a284fbd1092e220c (patch) | |
tree | 22d3d7a53d2777fdae8ccb597c35a41c7d9f7985 /WireGuard/WireGuard/UI/macOS/ViewController/ButtonedDetailViewController.swift | |
parent | ringlogger: document races (diff) | |
download | wireguard-apple-bca9fead5e8a6a45335d5de1a284fbd1092e220c.tar.xz wireguard-apple-bca9fead5e8a6a45335d5de1a284fbd1092e220c.zip |
macOS: ButtonedDetailViewController: Set min dimensions
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to '')
-rw-r--r-- | WireGuard/WireGuard/UI/macOS/ViewController/ButtonedDetailViewController.swift | 6 |
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 } |