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() {
|
func show() {
|
||||||
makeKeyAndOrderFront(nil)
|
makeKeyAndOrderFront(nil)
|
||||||
|
thumbnailsView.scrollView.flashScrollers()
|
||||||
}
|
}
|
||||||
|
|
||||||
static func highlightCell(_ previousView: NSView, _ newView: NSView) {
|
static func highlightCell(_ previousView: NSView, _ newView: NSView) {
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user