diff options
author | kit <kitbdev@gmail.com> | 2024-04-25 19:19:08 -0400 |
---|---|---|
committer | kit <kitbdev@gmail.com> | 2024-04-25 19:19:08 -0400 |
commit | d9b0561601f93a54bd2f831fca434c3383d36441 (patch) | |
tree | c718b5bdbcc868ce6c4eac0aebee769c025cdeff /scene/gui/text_edit.cpp | |
parent | 11d3768132582d192b8464769f26b493ae822321 (diff) | |
download | redot-engine-d9b0561601f93a54bd2f831fca434c3383d36441.tar.gz |
Don't use vscroll when fit to content height in TextEdit
Diffstat (limited to 'scene/gui/text_edit.cpp')
-rw-r--r-- | scene/gui/text_edit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 39fba72e09..38b4ffc8ae 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -7491,7 +7491,7 @@ void TextEdit::_update_scrollbars() { updating_scrolls = true; - if (total_rows > visible_rows) { + if (!fit_content_height && total_rows > visible_rows) { v_scroll->show(); v_scroll->set_max(total_rows + _get_visible_lines_offset()); v_scroll->set_page(visible_rows + _get_visible_lines_offset()); |