|
|
@ -138,6 +138,9 @@ function TextBoxWidget:_splitCharWidthList()
|
|
|
|
-- either a very long english word ocuppying more than one line,
|
|
|
|
-- either a very long english word ocuppying more than one line,
|
|
|
|
-- or the excessive char is itself splittable:
|
|
|
|
-- or the excessive char is itself splittable:
|
|
|
|
-- we let that excessive char for next line
|
|
|
|
-- we let that excessive char for next line
|
|
|
|
|
|
|
|
if adjusted_idx == offset then -- let the fact a long word was splitted be known
|
|
|
|
|
|
|
|
self.has_split_inside_word = true
|
|
|
|
|
|
|
|
end
|
|
|
|
cur_line_text = table.concat(self.charlist, "", offset, idx - 1)
|
|
|
|
cur_line_text = table.concat(self.charlist, "", offset, idx - 1)
|
|
|
|
cur_line_width = cur_line_width - self.char_width_list[idx].width
|
|
|
|
cur_line_width = cur_line_width - self.char_width_list[idx].width
|
|
|
|
elseif c == " " then
|
|
|
|
elseif c == " " then
|
|
|
|