Browse Source

Merge pull request #39524 from KoBeWi/follow_me_bro

Re-enable scroll follow on RichTextLabel clear
Rémi Verschelde 5 years ago
parent
commit
98f47eaa62
1 changed files with 3 additions and 0 deletions
  1. 3 0
      scene/gui/rich_text_label.cpp

+ 3 - 0
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();