Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Recalculate Autoheight on THTMLLabel
Mon, May 29 2023 11:23 AMPermanent Link

erickengelke

Avatar

When you load a string into THTMLLabel's content, if it includes an img tag, the content will often not update the Auto-calculated height field so scrollbars don't get updated.  Is there a function I can call sometime after the load to recalculate the height to improve the scrollbars?  I don't mind calling it in a TTimer if necessary.

Thanks
Erick
EWB Programming Books and Nice Component Library
See my EWB BLOG posts, at:
http://www.erickengelke.com
Sat, Jun 3 2023 10:17 AMPermanent Link

erickengelke

Avatar

erickengelke wrote:

>When you load a string into THTMLLabel's content, if it includes an img tag, the content will often not update the Auto-calculated height field so scrollbars don't get updated.  

I didn't hear of a solution, so I coded my own.  It's not pretty but it's better than the default, I put it in my blog at:
https://www.erickengelke.com/blog/7.html

See other helpful blog posts at https://www.erickengelke.com

Erick
EWB Programming Books and Nice Component Library
See my EWB BLOG posts, at:
http://www.erickengelke.com
Image