HtmlPanel size

0
0

Hi,

I’m trying to show messages of different length in a list of small htmlpanels and would like to change height of panels according to the content length.

Is there any known way to achieve this? Like you have the lines property in a textbox control.

Thanks,

Jan

  • You must to post comments
0
0

Hi Jan,

have your tried using Autosize = true and setting the Minimum Width and Maximum Width to only allow it to grow vertically?
You can also use the AutoSizeMode to GrowAndShrink if you want the panel to shrink, too.

If you want to do your own measurement and resizing you have to measure the HTML text on the client
using Wisej.Base.TextUtils.MeasureTextAsync.

If that does not help, please provide a small test case.

Best regards
Frank

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.