Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
b048eb05
Commit
b048eb05
authored
May 16, 2020
by
Marcus Brummer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed text editor drawing if smooth scrolling is disabled.
Fixes #38778
parent
ac58372d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
text_edit.cpp
scene/gui/text_edit.cpp
+1
-3
No files found.
scene/gui/text_edit.cpp
View file @
b048eb05
...
...
@@ -1121,9 +1121,7 @@ void TextEdit::_notification(int p_what) {
int
ofs_y
=
(
i
*
get_row_height
()
+
cache
.
line_spacing
/
2
)
+
ofs_readonly
;
ofs_y
-=
cursor
.
wrap_ofs
*
get_row_height
();
if
(
smooth_scroll_enabled
)
{
ofs_y
+=
(
-
get_v_scroll_offset
())
*
get_row_height
();
}
ofs_y
-=
get_v_scroll_offset
()
*
get_row_height
();
// Check if line contains highlighted word.
int
highlighted_text_col
=
-
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment