소스 검색

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.active = false;
 	current_idx = 1;
+	if (scroll_follow) {
+		scroll_following = true;
+	}
 
 	if (fixed_width != -1) {
 		minimum_size_changed();