From 90ea9dfedee3521edca3be9f045813c96e88ab0b Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Sun, 26 May 2019 20:51:08 +0200 Subject: [PATCH] Fix TextEdit blocking scroll without scrollbar --- scene/gui/text_edit.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index acd2950b4c1..ef6bfc2e2d1 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -406,6 +406,7 @@ void TextEdit::_update_scrollbars() { cursor.line_ofs = 0; cursor.wrap_ofs = 0; v_scroll->set_value(0); + v_scroll->set_max(0); v_scroll->hide(); } @@ -424,6 +425,7 @@ void TextEdit::_update_scrollbars() { cursor.x_ofs = 0; h_scroll->set_value(0); + h_scroll->set_max(0); h_scroll->hide(); }