Scrollview Panel Height

Bill Norris

Active Member
Licensed User
Longtime User
I am loading a text into a single label on a scrollview. I am using a scrollview because in some case there is alot of text (more than can display in the fixed height of the scrollview), other times only a sentence. I want to dynamically set the height of the label and inner panel so they are only slightly longer than the block of text. I suppose I could calculate the average number of characters that fit on one line and then do some calculations to determine how many line will be needed. Haven't tried it yet, just wondering if anyone has a better idea.

Thanks,
Bill
 
Top