From: Roopesh Chander Date: Fri, 15 Feb 2019 10:10:08 +0000 (+0530) Subject: macOS: Tunnels list: Use constant width for the table view X-Git-Tag: 0.0.20190319-1~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c38a88988b9a24048087e6ee8c332bb130a422d5;p=thirdparty%2Fwireguard-apple.git macOS: Tunnels list: Use constant width for the table view Signed-off-by: Roopesh Chander --- diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/ManageTunnelsRootViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/ManageTunnelsRootViewController.swift index 5e90437..8d28157 100644 --- a/WireGuard/WireGuard/UI/macOS/ViewController/ManageTunnelsRootViewController.swift +++ b/WireGuard/WireGuard/UI/macOS/ViewController/ManageTunnelsRootViewController.swift @@ -54,8 +54,7 @@ class ManageTunnelsRootViewController: NSViewController { tunnelDetailContainerView.topAnchor.constraint(equalTo: container.topAnchor), tunnelDetailContainerView.bottomAnchor.constraint(equalTo: container.bottomAnchor), tunnelDetailContainerView.leadingAnchor.constraint(equalTo: tunnelsListView.trailingAnchor, constant: centralSpacing), - tunnelDetailContainerView.trailingAnchor.constraint(equalTo: container.trailingAnchor), - tunnelsListView.widthAnchor.constraint(equalTo: container.widthAnchor, multiplier: 0.3) + tunnelDetailContainerView.trailingAnchor.constraint(equalTo: container.trailingAnchor) ]) } diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift index c2f3ffa..0ebac16 100644 --- a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift +++ b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift @@ -100,7 +100,7 @@ class TunnelsListTableViewController: NSViewController { ]) NSLayoutConstraint.activate([ - containerView.widthAnchor.constraint(greaterThanOrEqualToConstant: 120), + containerView.widthAnchor.constraint(equalToConstant: 180), containerView.heightAnchor.constraint(greaterThanOrEqualToConstant: 120) ])