We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi,
I made some div elements using the createDiv() function, and filled them with html.
It seems that the created divs have the same width as my canvas, but I want them to only be as wide as content they contain. How can I calculate the width of the content contained by the div, so I can then resize the div to the correct width?
Thanks, Miles
Answers
http://forum.processing.org/two/discussions/tagged?Tag=creatediv()
Thanks. I solved it by first setting the position of the div, then calling div.elt.clientWidthh.