scrollview (adjusts view to the (new) size)

Hi,

scrollview only works (is scrollable) if i set the width and height of one of the contents.

is there any way to adjust the size of the content of a scrollview to its real size?
and what happen if i change the content?

thanks

ScrollView is a component which has some other components inside. So it is pretty normal that inner component will have some fixed height.

If you need to show some flexible content ( custom html code for example ), instead of scrollview you can use template

{ view:“template”, scroll:“true”, …

In such case it will adjust scroll to the content, and if content will be changed ( by templates API ) - scroll will be readjusted.