Dynamic resize of a scrollview

junglejet

Active Member
Licensed User
Longtime User
Little problem here:

I have a working scrollview with a label that is child to the scrollview's panel.
The label contains certain multiline text.
So far so good.

I have sized the scrollview very big (high) to cope with the maximum text length I expect.

Most of the label is empty most of the time, though.

Is there any trick out there how I can resize the scrollview to the actual height of the label used to display the text? I know how to resize the scrollview, but what would be the right height? Where can I take it from?

Any hint appreciated.

Thanks
Andy
 

kickaha

Well-Known Member
Licensed User
Longtime User
Why not just set the height of the scrollview panel to the height of the label (this can be got with LabelName.Height)?
 
Upvote 0
Top