瀏覽代碼

Re-enable scroll follow on RichTextLabel clear

(cherry picked from commit 46fd51056a1e4a59c9e5b351c12f51cc062db009)
Tomasz Chabora 5 年之前
父節點
當前提交
2f04896b0e
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      scene/gui/rich_text_label.cpp

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