macOS: Manage tunnels: Fix list view look

This commit is contained in:
Roopesh Chander 2019-01-02 18:22:07 +05:30
parent 3bfcfe61a6
commit 301dc81770
1 changed files with 2 additions and 1 deletions

View File

@ -59,6 +59,7 @@ class TunnelsListTableViewController: NSViewController {
let scrollView = NSScrollView() let scrollView = NSScrollView()
scrollView.hasVerticalScroller = true scrollView.hasVerticalScroller = true
scrollView.autohidesScrollers = true scrollView.autohidesScrollers = true
scrollView.borderType = .bezelBorder
let clipView = NSClipView() let clipView = NSClipView()
clipView.documentView = tableView clipView.documentView = tableView
@ -74,7 +75,7 @@ class TunnelsListTableViewController: NSViewController {
containerView.topAnchor.constraint(equalTo: scrollView.topAnchor), containerView.topAnchor.constraint(equalTo: scrollView.topAnchor),
containerView.leadingAnchor.constraint(equalTo: scrollView.leadingAnchor), containerView.leadingAnchor.constraint(equalTo: scrollView.leadingAnchor),
containerView.trailingAnchor.constraint(equalTo: scrollView.trailingAnchor), containerView.trailingAnchor.constraint(equalTo: scrollView.trailingAnchor),
scrollView.bottomAnchor.constraint(equalTo: buttonBar.topAnchor), scrollView.bottomAnchor.constraint(equalTo: buttonBar.topAnchor, constant: 1),
containerView.leadingAnchor.constraint(equalTo: buttonBar.leadingAnchor), containerView.leadingAnchor.constraint(equalTo: buttonBar.leadingAnchor),
containerView.bottomAnchor.constraint(equalTo: buttonBar.bottomAnchor) containerView.bottomAnchor.constraint(equalTo: buttonBar.bottomAnchor)
]) ])