Re: Textbox width according to the characters present in the textbox.
You can only approximate.
-- (1) Users may not have a specified font. Browsers will try to substitute this font, and the width of characters maybe different for a substitute font.
(2) Users can zoom in or out, changing the font size from the one you set.
I need to set the size of the text box according to the length of the text inside that box, it may contain localized characters like Chinese. Is any we can calculate the length in pixels for this?
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home