Skip to content

Commit 76e898d

Browse files
committed
Add gutter view below find bar in scroll view hierarchy
The gutter view is now added as a subview of the scroll view, positioned below the find bar view. This ensures the gutter appears visually below the find bar if one is present.
1 parent a923dc1 commit 76e898d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/STTextViewAppKit/STTextView+Gutter.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ extension STTextView {
2222
gutterView.highlightSelectedLine = highlightSelectedLine
2323
gutterView.selectedLineHighlightColor = selectedLineHighlightColor
2424
if let scrollView = enclosingScrollView {
25-
scrollView.addSubview(gutterView)
25+
scrollView.addSubview(gutterView, positioned: .below, relativeTo: scrollView.findBarView)
2626
}
2727
self.gutterView = gutterView
2828
needsLayout = true

0 commit comments

Comments
 (0)