fix: scrollbar only shows on scroll (closes #196)
This commit is contained in:
1 parent
767f90029e
commit
c2abff0617
2 files changed
+4
-1
No files matched your search
@@ -22,6 +22,7 @@ class ThumbnailsPanel: NSPanel {
|
||||
|
||||
func show() {
|
||||
makeKeyAndOrderFront(nil)
|
||||
thumbnailsView.scrollView.flashScrollers()
|
||||
}
|
||||
|
||||
static func highlightCell(_ previousView: NSView, _ newView: NSView) {
|
||||
|
||||
@@ -92,11 +92,13 @@ class ScrollView: NSScrollView {
|
||||
documentView = FlippedView(frame: .zero)
|
||||
drawsBackground = false
|
||||
hasVerticalScroller = true
|
||||
scrollerStyle = .overlay
|
||||
scrollerKnobStyle = .light
|
||||
}
|
||||
|
||||
// draw the scroller on top of the content
|
||||
override func tile() {
|
||||
super.tile()
|
||||
// draw the scroller on top of the content
|
||||
contentView.frame = bounds
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user