Make TimelineTableView and TimelineTableRowView opaque in the interest of speeding up rendering during scrolling.

This commit is contained in:
Brent Simmons 2019-05-13 21:42:47 -07:00
parent 6d5b3884fc
commit 5abe73331a
2 changed files with 8 additions and 0 deletions

View File

@ -10,6 +10,10 @@ import AppKit
class TimelineTableRowView : NSTableRowView {
override var isOpaque: Bool {
return true
}
init() {
super.init(frame: NSRect.zero)
}

View File

@ -24,6 +24,10 @@ class TimelineTableView: NSTableView {
// MARK: - NSView
override var isOpaque: Bool {
return true
}
override func viewWillStartLiveResize() {
if let scrollView = self.enclosingScrollView {
scrollView.hasVerticalScroller = false