From a1b0e7b12c469c7032d5c32d789d0a5ecc713f76 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. (cherry picked from commit 970dc91cb77bd415c2a3f6894c1b140f4ff3cff0) --- 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 8581a9d193b..8f4f3648b86 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -1453,6 +1453,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;