Skip to content

Commit 6b1ee11

Browse files
committed
Fix clipsToBounds propagation to contentView and lineHighlightView
1 parent 5fe741c commit 6b1ee11

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sources/STTextViewUIKit/STTextView.swift

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//
44
//
55
// STTextView
6-
// |---conventView
6+
// |---contentView
77
// |---STLineHighlightView
88
// |---STTextLayoutFragmentView
99
// |---gutterView
@@ -436,6 +436,9 @@ import STTextViewCommon
436436

437437
super.init(frame: frame)
438438

439+
contentView.clipsToBounds = clipsToBounds
440+
lineHighlightView.clipsToBounds = clipsToBounds
441+
439442
setSelectedTextRange(NSTextRange(location: textLayoutManager.documentRange.location), updateLayout: false)
440443

441444
textLayoutManager.delegate = self

0 commit comments

Comments
 (0)