From 910fdfc32126e5ce158c5f9c927ae89b7f0e7f36 Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Fri, 15 Feb 2019 15:44:06 +0530 Subject: macOS: Tunnel detail: Set min width/height Signed-off-by: Roopesh Chander --- .../UI/macOS/ViewController/TunnelDetailTableViewController.swift | 5 +++++ 1 file changed, 5 insertions(+) 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 } -- cgit v1.2.3-59-g8ed1b