TextField has been improved a lot recently, but from the look of your textwrap class I can't see why it would misbehave now. Can you be more precise ? What does it used to do, what does it do now, which version of Gideros broke it, etc.
Btw, TextField has built in text wrap/formatting now.
yes indeed, it can wrap and align text all by itself. I had a try with your project, the issue is caused by TextField now interpreting ascii control chars such as tab (\t) and LF(\n). Your TextWrap code tries to figure out the average character size based on the given text, and it doesn't exclude those ascii control chars from the computation. In your case the string used to check character size contains a '\n', so the textfield width doesn't reflect the total string width.
Try to change line 7 into:
for chr in str:gfind("([ -\127\194-\244][\128-\191]*)")do
Comments
Btw, TextField has built in text wrap/formatting now.
I had a try with your project, the issue is caused by TextField now interpreting ascii control chars such as tab (\t) and LF(\n). Your TextWrap code tries to figure out the average character size based on the given text, and it doesn't exclude those ascii control chars from the computation. In your case the string used to check character size contains a '\n', so the textfield width doesn't reflect the total string width.
Try to change line 7 into:
Likes: talis, antix, Xman, Apollo14, SinisterSoft
Thanks so much.
Likes: SinisterSoft