From 2f04896b0ee7313934d3e671ba9903e471dcaa57 Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Sun, 14 Jun 2020 01:23:32 +0200 Subject: [PATCH] Re-enable scroll follow on RichTextLabel clear (cherry picked from commit 46fd51056a1e4a59c9e5b351c12f51cc062db009) --- scene/gui/rich_text_label.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index 911cb5a80fd..279daf7d2cb 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -1968,6 +1968,9 @@ void RichTextLabel::clear() { selection.click = NULL; selection.active = false; current_idx = 1; + if (scroll_follow) { + scroll_following = true; + } } void RichTextLabel::set_tab_size(int p_spaces) {