summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorallkhor <say2word@gmail.com>2018-11-23 23:54:49 +0600
committerallkhor <say2word@gmail.com>2018-11-23 23:54:49 +0600
commit970dc91cb77bd415c2a3f6894c1b140f4ff3cff0 (patch)
tree63d8b25a3fe0ad425dea9e8b728516da96a234dd
parentc48027af922a7203dc53bc41435a9d9021ba3291 (diff)
RichTextLabel: clear the scroll offset.
-rw-r--r--scene/gui/rich_text_label.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp
index 9f1687262f..17de346f51 100644
--- a/scene/gui/rich_text_label.cpp
+++ b/scene/gui/rich_text_label.cpp
@@ -1616,6 +1616,7 @@ void RichTextLabel::clear() {
main->lines.clear();
main->lines.resize(1);
main->first_invalid_line = 0;
+ scroll_w = 0;
update();
selection.click = NULL;
selection.active = false;