diff options
author | Tomasz Chabora <kobewi4e@gmail.com> | 2019-05-26 20:51:08 +0200 |
---|---|---|
committer | Tomasz Chabora <kobewi4e@gmail.com> | 2019-05-26 20:51:08 +0200 |
commit | 90ea9dfedee3521edca3be9f045813c96e88ab0b (patch) | |
tree | be94b10223a845bc16096a5742d068c50155f7bc | |
parent | df17cf06d44ca8c75ddcbce52b4e56d05ffea332 (diff) | |
download | redot-engine-90ea9dfedee3521edca3be9f045813c96e88ab0b.tar.gz |
Fix TextEdit blocking scroll without scrollbar
-rw-r--r-- | scene/gui/text_edit.cpp | 2 |
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(); } |