mirror of
https://github.com/godotengine/godot.git
synced 2024-11-30 08:05:47 +00:00
Merge pull request #87880 from kitbdev/fix-textedit-freeze
Fix freeze in TextEdit with `scroll_past_end_of_file` and `fit_content_height`
This commit is contained in:
commit
c23cc08b1c
@ -7333,7 +7333,7 @@ void TextEdit::_update_scrollbars() {
|
||||
|
||||
int visible_rows = get_visible_line_count();
|
||||
int total_rows = draw_placeholder ? placeholder_wraped_rows.size() - 1 : get_total_visible_line_count();
|
||||
if (scroll_past_end_of_file_enabled) {
|
||||
if (scroll_past_end_of_file_enabled && !fit_content_height) {
|
||||
total_rows += visible_rows - 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user