Skip to content

Commit 08eae14

Browse files
committed
Don't Constrain to TextView, Constrain to Leading And Top ClipView
1 parent 7a21300 commit 08eae14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/CodeEditSourceEditor/Controller/TextViewController+LoadView.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ extension TextViewController {
8888
maxWidthConstraint,
8989
relativeWidthConstraint,
9090

91-
gutterView.topAnchor.constraint(equalTo: textView.topAnchor)
91+
gutterView.topAnchor.constraint(equalTo: scrollView.contentView.topAnchor),
92+
gutterView.leadingAnchor.constraint(equalTo: scrollView.contentView.leadingAnchor)
9293
])
9394
}
9495

0 commit comments

Comments
 (0)