summaryrefslogtreecommitdiffstats
path: root/scene/gui/text_edit.cpp
diff options
context:
space:
mode:
authorkit <kitbdev@gmail.com>2024-04-25 19:19:08 -0400
committerkit <kitbdev@gmail.com>2024-04-25 19:19:08 -0400
commitd9b0561601f93a54bd2f831fca434c3383d36441 (patch)
treec718b5bdbcc868ce6c4eac0aebee769c025cdeff /scene/gui/text_edit.cpp
parent11d3768132582d192b8464769f26b493ae822321 (diff)
downloadredot-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.cpp2
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());