Explorar el Código

Merge pull request #39524 from KoBeWi/follow_me_bro

Re-enable scroll follow on RichTextLabel clear
Rémi Verschelde hace 5 años
padre
commit
98f47eaa62
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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();