1
0
mirror of https://github.com/Toxblh/MTMR.git synced 2026-01-10 17:08:39 +00:00

Less spacing in scroll

This commit is contained in:
Toxblh 2018-04-14 02:17:01 +01:00
parent 877c4268fd
commit 78509fb84d

View File

@ -6,6 +6,7 @@ class ScrollViewItem: NSCustomTouchBarItem {
super.init(identifier: identifier)
let views = items.compactMap { $0.view }
let stackView = NSStackView(views: views)
stackView.spacing = 1
stackView.orientation = .horizontal
let scrollView = NSScrollView(frame: CGRect(origin: .zero, size: stackView.fittingSize))
scrollView.documentView = stackView