AS3 TextField.textWidth ignore whitespace at end.
Posted
by Robin
on Stack Overflow
See other posts from Stack Overflow
or by Robin
Published on 2010-02-18T19:22:26Z
Indexed on
2010/04/10
5:33 UTC
Read the original article
Hit count: 466
Hi
I'm trying to calculate the textWidth, but it seems to ignore the white spaces at the end. The text
"Hello" "Hello "
returns the same text width. A string with " " returns 0. How do I calculate the width with the space?
© Stack Overflow or respective owner