Skip to content

Commit 26edd07

Browse files
thecoolwinteraustincondiff
authored andcommitted
Update TextViewController+StyleViews.swift
1 parent 2215aa3 commit 26edd07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/CodeEditSourceEditor/Controller/TextViewController+StyleViews.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ extension TextViewController {
9696
minimapView.scrollView.contentInsets.bottom += additionalTextInsets?.bottom ?? 0
9797

9898
// Inset the top by the find panel height
99-
let findInset = (findViewController?.isShowingFindPanel ?? false) ? FindPanel.height : 0
99+
let findInset = (findViewController?.isShowingFindPanel ?? false) ? findViewController?.panelHeight ?? 0 : 0
100100
scrollView.contentInsets.top += findInset
101101
minimapView.scrollView.contentInsets.top += findInset
102102

0 commit comments

Comments
 (0)