I want to adjust the height of a htmlviewer, textarea or a multiline weblabel to match the text. But i cannot figure out how to determine the appropriate height. I need to know the height to also adjust the container that contains the textarea.
WebHtmlAreaTD in Web Custom Controls has an event, wccContentResize, which lets you know the width and height of the HTML you’ve assigned to the control. Based on that you can resize your controls in Xojo as desired.
I am going to try it now
Almost forgot…in 1.3.1 the reported height is short by 32px. This will be fixed in the upcoming 1.4 release, though for right now you can just add 32.