From eb683ce18ca1afd9dba375403213014549ddbe91 Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Fri, 15 Feb 2019 15:44:06 +0530 Subject: [PATCH] macOS: Tunnel detail: Set min width/height --- .../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 }