From d9b0561601f93a54bd2f831fca434c3383d36441 Mon Sep 17 00:00:00 2001 From: kit Date: Thu, 25 Apr 2024 19:19:08 -0400 Subject: [PATCH] Don't use vscroll when fit to content height in TextEdit --- scene/gui/text_edit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 39fba72e09b..38b4ffc8ae9 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());