浏览代码

Merge pull request #39524 from KoBeWi/follow_me_bro

Re-enable scroll follow on RichTextLabel clear
Rémi Verschelde 5 年之前
父节点
当前提交
98f47eaa62
共有 1 个文件被更改,包括 3 次插入0 次删除
  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.click = nullptr;
 	selection.active = false;
 	selection.active = false;
 	current_idx = 1;
 	current_idx = 1;
+	if (scroll_follow) {
+		scroll_following = true;
+	}
 
 
 	if (fixed_width != -1) {
 	if (fixed_width != -1) {
 		minimum_size_changed();
 		minimum_size_changed();