summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-10-11 08:24:13 +0200
committerGitHub <noreply@github.com>2019-10-11 08:24:13 +0200
commitbe0da31f7a2e91b211b556ead5f1529f4427441a (patch)
treef508ff23f674be99efe79837222cbdaf7c66ec5a /scene/gui
parent22d100ad3a8580a727869dba2c6802e1f8979a18 (diff)
parente5b18cea630ae51061f33de3135240fbb1a965cc (diff)
Merge pull request #32628 from Paulb23/issue_32609_set_text_scrollbar
Fixed inserting text at caret not updating scrollbar size
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/text_edit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index c0b0944e47..a22ddb265b 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -4071,6 +4071,7 @@ void TextEdit::_insert_text_at_cursor(const String &p_text) {
int new_column, new_line;
_insert_text(cursor.line, cursor.column, p_text, &new_line, &new_column);
+ _update_scrollbars();
cursor_set_line(new_line);
cursor_set_column(new_column);