fix: scrollbar only shows on scroll (closes #196)

This commit is contained in:
Louis Pontoise authored and lwouis committed 2020-04-09 03:23:55 +09:00
1 parent 767f90029e
commit c2abff0617
2 files changed
+4 -1

No files matched your search

+1
View File
@@ -22,6 +22,7 @@ class ThumbnailsPanel: NSPanel {
func show() { func show() {
makeKeyAndOrderFront(nil) makeKeyAndOrderFront(nil)
thumbnailsView.scrollView.flashScrollers()
} }
static func highlightCell(_ previousView: NSView, _ newView: NSView) { static func highlightCell(_ previousView: NSView, _ newView: NSView) {
+3 -1
View File
@@ -92,11 +92,13 @@ class ScrollView: NSScrollView {
documentView = FlippedView(frame: .zero) documentView = FlippedView(frame: .zero)
drawsBackground = false drawsBackground = false
hasVerticalScroller = true hasVerticalScroller = true
scrollerStyle = .overlay
scrollerKnobStyle = .light
} }
// draw the scroller on top of the content
override func tile() { override func tile() {
super.tile() super.tile()
// draw the scroller on top of the content
contentView.frame = bounds contentView.frame = bounds
} }
} }