mirror of
https://github.com/Toxblh/MTMR.git
synced 2026-01-10 17:08:39 +00:00
* scrollView baseline fix
This commit is contained in:
parent
b95f5af95f
commit
5ed1790601
@ -14,7 +14,6 @@ class AppleScriptTouchBarItem: CustomButtonTouchBarItem {
|
||||
return
|
||||
}
|
||||
self.script = script
|
||||
button.bezelColor = .clear
|
||||
DispatchQueue.main.async {
|
||||
var error: NSDictionary?
|
||||
guard script.compileAndReturnError(&error) else {
|
||||
|
||||
@ -10,6 +10,7 @@ class ScrollViewItem: NSCustomTouchBarItem {
|
||||
stackView.orientation = .horizontal
|
||||
let scrollView = NSScrollView(frame: CGRect(origin: .zero, size: stackView.fittingSize))
|
||||
scrollView.documentView = stackView
|
||||
scrollView.documentView?.bounds.origin = CGPoint(x: 0.0, y: -5.5)
|
||||
self.view = scrollView
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user