From 892d93759c5dddc9af4e57deec2e3613909d8cc8 Mon Sep 17 00:00:00 2001 From: kobewi Date: Sun, 9 Jan 2022 01:45:07 +0100 Subject: Set max value of inactive TextEdit scrolls to 0 --- scene/gui/text_edit.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scene/gui') diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 817a4453a8..55f621fa96 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -5949,6 +5949,7 @@ void TextEdit::_update_scrollbars() { caret.line_ofs = 0; caret.wrap_ofs = 0; v_scroll->set_value(0); + v_scroll->set_max(0); v_scroll->hide(); } @@ -5966,6 +5967,7 @@ void TextEdit::_update_scrollbars() { } else { caret.x_ofs = 0; h_scroll->set_value(0); + h_scroll->set_max(0); h_scroll->hide(); } -- cgit v1.2.3