From bca9fead5e8a6a45335d5de1a284fbd1092e220c Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Mon, 18 Mar 2019 13:47:40 +0530 Subject: [PATCH] macOS: ButtonedDetailViewController: Set min dimensions Signed-off-by: Roopesh Chander --- .../macOS/ViewController/ButtonedDetailViewController.swift | 6 ++++++ 1 file changed, 6 insertions(+) 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 }