Преглед на файлове

Merge pull request #23934 from allkhor/rich_text_label_scroll_offset

RichTextLabel: clear the scroll offset.
Rémi Verschelde преди 6 години
родител
ревизия
8348aca118
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      scene/gui/rich_text_label.cpp

+ 1 - 0
scene/gui/rich_text_label.cpp

@@ -1616,6 +1616,7 @@ void RichTextLabel::clear() {
 	main->lines.clear();
 	main->lines.resize(1);
 	main->first_invalid_line = 0;
+	scroll_w = 0;
 	update();
 	selection.click = NULL;
 	selection.active = false;