Skip to content

Commit

Permalink
Hard-code the row height and intercell spacing of the outline view.
Browse files Browse the repository at this point in the history
The default values were the same for years until the macOS 11 SDK.
Use the old values.
  • Loading branch information
lapcat committed Nov 27, 2020
1 parent 01055d7 commit d224d31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/BrowserWindowController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ class BrowserWindowController:NSObject, NSOutlineViewDataSource, NSOutlineViewDe
outlineView.allowsTypeSelect = true
outlineView.autoresizesOutlineColumn = false
outlineView.headerView = nil
outlineView.intercellSpacing = NSMakeSize(3.0, 2.0) // macOS 11 SDK changed the default, so use the old value.
outlineView.rowHeight = 17.0 // macOS 11 SDK changed the default, so use the old value.
outlineView.setDraggingSourceOperationMask([.copy], forLocal:false) // Allow drags to other apps
outlineView.usesAlternatingRowBackgroundColors = false

Expand Down

0 comments on commit d224d31

Please sign in to comment.