summaryrefslogtreecommitdiff
path: root/scene/gui/rich_text_label.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-06-14 10:13:21 +0200
committerGitHub <noreply@github.com>2020-06-14 10:13:21 +0200
commit98f47eaa62d1c65f5fb4e198212de107d0f255d3 (patch)
tree19daed7336bf46de5c1b519f9e193c9207d85fce /scene/gui/rich_text_label.cpp
parent10b678a8067547728b46c5602f88e31870174b8b (diff)
parent46fd51056a1e4a59c9e5b351c12f51cc062db009 (diff)
Merge pull request #39524 from KoBeWi/follow_me_bro
Re-enable scroll follow on RichTextLabel clear
Diffstat (limited to 'scene/gui/rich_text_label.cpp')
-rw-r--r--scene/gui/rich_text_label.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp
index 2f5af0eda0..662eae394f 100644
--- a/scene/gui/rich_text_label.cpp
+++ b/scene/gui/rich_text_label.cpp
@@ -1970,6 +1970,9 @@ void RichTextLabel::clear() {
selection.click = nullptr;
selection.active = false;
current_idx = 1;
+ if (scroll_follow) {
+ scroll_following = true;
+ }
if (fixed_width != -1) {
minimum_size_changed();