[SOLVED] autosize dont' work well with Label with AllowHtml

Answered Closed
0
0

Hi,

if a label has AllowHtml = true, the autosize don’t work well. The size of the label is less than the text, in particular with the presence of <br>, <p>and the label is Dock Top

  • You must to post comments
Best Answer
0
0

Hi Cristian,

thanks for your message, but this is by design.
Html text can only be measured by the browser.

You might want to use the following methods:

https://wisej.com/docs/2.1/html/T_Wisej_Base_TextUtils.htm

https://wisej.com/docs/2.1/html/M_Wisej_Base_TextUtils_MeasureText_1.htm

or

https://wisej.com/docs/2.1/html/M_Wisej_Base_TextUtils_MeasureTextAsync.htm

Best regards
Frank

  • You must to post comments
Showing 1 result