reset scroll position when the text is changed

develop
myk002 2022-07-11 17:23:23 -07:00 committed by Myk
parent e61d3bf3c7
commit 214dd3c579
1 changed files with 1 additions and 1 deletions

@ -473,7 +473,6 @@ Label.ATTRS{
}
function Label:init(args)
self.start_line_num = 1
-- use existing saved text if no explicit text was specified. this avoids
-- overwriting pre-formatted text that subclasses may have already set
self:setText(args.text or self.text)
@ -483,6 +482,7 @@ function Label:init(args)
end
function Label:setText(text)
self.start_line_num = 1
self.text = text
parse_label_text(self)