Skip to content

Commit 422b7bf

Browse files
Fix Split View Can't Collapse (#2071)
### Description Fixes an erroneous overridden method causing split views to not be collapsable. ### Related Issues * closes #2070 ### Checklist - [x] I read and understood the [contributing guide](https://github.com/CodeEditApp/CodeEdit/blob/main/CONTRIBUTING.md) as well as the [code of conduct](https://github.com/CodeEditApp/CodeEdit/blob/main/CODE_OF_CONDUCT.md) - [x] The issues this PR addresses are related to each other - [x] My changes generate no new warnings - [x] My code builds and runs on my machine - [x] My changes are all related to the related issue above - [x] I documented my code ### Screenshots https://github.com/user-attachments/assets/12c3a5c2-bf70-4131-ad37-21adf5fa4e68
1 parent 6619d16 commit 422b7bf

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

CodeEdit/Features/SplitView/Views/SplitViewControllerView.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,6 @@ final class SplitViewController: NSSplitViewController {
131131
}
132132
}
133133

134-
override func splitView(_ splitView: NSSplitView, canCollapseSubview subview: NSView) -> Bool {
135-
false
136-
}
137-
138134
override func splitView(_ splitView: NSSplitView, shouldHideDividerAt dividerIndex: Int) -> Bool {
139135
// For some reason, AppKit _really_ wants to hide dividers when there's only one item (and no dividers)
140136
// so we do this check for them.

0 commit comments

Comments
 (0)