Skip to content

Commit e08e482

Browse files
committed
Docs
1 parent 78a328c commit e08e482

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CodeEdit/Features/SplitView/Views/SplitViewControllerView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ final class SplitViewController: NSSplitViewController {
139139
}
140140

141141
override func splitView(_ splitView: NSSplitView, shouldHideDividerAt dividerIndex: Int) -> Bool {
142+
// For some reason, AppKit _really_ wants to hide dividers when there's only one item (and no dividers)
143+
// so we do this check for them.
142144
guard items.count > 1 else { return false }
143145
return super.splitView(splitView, shouldHideDividerAt: dividerIndex)
144146
}

0 commit comments

Comments
 (0)