You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 19:11:41 +00:00
Use Math::round() instead of round() for rounding the scroll position
This commit is contained in:
@@ -5473,7 +5473,7 @@ void TextEdit::set_line_as_last_visible(int p_line, int p_wrap_index) {
|
||||
set_v_scroll(0);
|
||||
return;
|
||||
}
|
||||
set_v_scroll(round(get_scroll_pos_for_line(first_line, next_line.y) + _get_visible_lines_offset()));
|
||||
set_v_scroll(Math::round(get_scroll_pos_for_line(first_line, next_line.y) + _get_visible_lines_offset()));
|
||||
}
|
||||
|
||||
int TextEdit::get_last_full_visible_line() const {
|
||||
|
||||
Reference in New Issue
Block a user