Skip to content

Commit

Permalink
Remove insets from scroll view
Browse files Browse the repository at this point in the history
  • Loading branch information
danielzsh committed May 3, 2024
1 parent 86b9804 commit c8eca41
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Sources/CodeEditTextView/TextView/TextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,6 @@ public class TextView: NSView, NSTextContent {
if let scrollView = scrollView {
var rect = scrollView.documentVisibleRect
rect.origin.y += scrollView.contentInsets.top
rect.size.height -= scrollView.contentInsets.top + scrollView.contentInsets.bottom
return rect
} else {
return super.visibleRect
Expand Down

0 comments on commit c8eca41

Please sign in to comment.