macOS: Tunnels list: Use constant width for the table view

This commit is contained in:
Roopesh Chander 2019-02-15 15:40:08 +05:30
parent 1d003d6dba
commit 5eaef2f573
2 changed files with 2 additions and 3 deletions

View File

@ -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)
])
}

View File

@ -100,7 +100,7 @@ class TunnelsListTableViewController: NSViewController {
])
NSLayoutConstraint.activate([
containerView.widthAnchor.constraint(greaterThanOrEqualToConstant: 120),
containerView.widthAnchor.constraint(equalToConstant: 180),
containerView.heightAnchor.constraint(greaterThanOrEqualToConstant: 120)
])