X Tutup
Skip to content

Fix find next (f3) match line behind find bar#117261

Open
Cboyd97 wants to merge 1 commit intogodotengine:masterfrom
Cboyd97:master
Open

Fix find next (f3) match line behind find bar#117261
Cboyd97 wants to merge 1 commit intogodotengine:masterfrom
Cboyd97:master

Conversation

@Cboyd97
Copy link

@Cboyd97 Cboyd97 commented Mar 9, 2026

changed line 220 in code_editor.cpp from
text_editor->center_viewport_to_caret(0); to
base_text_editor->center_viewport_to_caret();

This centers the caret in the viewport after layout recalculations have been done. This means that editor will wait until the find bar has appeared fully before it scrolls to find the match, making the match appear above the find line instead of behind it.

…bar: changed line 220 in code_editor.cpp from text_editor->center_viewport_to_caret(0); to base_text_editor->center_viewport_to_caret(); This allows the caret tp be centered in the viewport after all pending layout recalculations in the tree are completed
@Cboyd97 Cboyd97 requested review from a team as code owners March 9, 2026 20:17
@AThousandShips AThousandShips changed the title Fixed issue #117105 Find next (f3) match line behind find bar Fix find next (f3) match line behind find bar Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Find next (f3) match line behind find bar

1 participant

X Tutup