From 970dc91cb77bd415c2a3f6894c1b140f4ff3cff0 Mon Sep 17 00:00:00 2001 From: allkhor Date: Fri, 23 Nov 2018 23:54:49 +0600 Subject: [PATCH] RichTextLabel: clear the scroll offset. --- scene/gui/rich_text_label.cpp | 1 + 1 file changed, 1 insertion(+) 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;