summaryrefslogtreecommitdiff
path: root/scene/gui/text_edit.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-05-26 21:06:18 +0200
committerGitHub <noreply@github.com>2019-05-26 21:06:18 +0200
commit252c841d7ff5d770e8d2819e4f7955363410744b (patch)
treebe94b10223a845bc16096a5742d068c50155f7bc /scene/gui/text_edit.cpp
parentdf17cf06d44ca8c75ddcbce52b4e56d05ffea332 (diff)
parent90ea9dfedee3521edca3be9f045813c96e88ab0b (diff)
Merge pull request #29202 from KoBeWi/regrescroll
Fix TextEdit blocking scroll without scrollbar
Diffstat (limited to 'scene/gui/text_edit.cpp')
-rw-r--r--scene/gui/text_edit.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index acd2950b4c..ef6bfc2e2d 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();
}