Explorar o código

RichTextLabel: clear the scroll offset.

allkhor %!s(int64=6) %!d(string=hai) anos
pai
achega
970dc91cb7
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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;