scroll view height
Hi,
I'm trying to build a web view and inject it in a scroll view. Since the text filled in the Web View is dynamic its impossible to know the exact height.
What happens is that when i reach the bottom of the view the web view is cut and I cant neither scroll it to see the content.
I haven't specified any height dimension on both views, since i thought it was the way to auto size them.
Is there a workaround for this?
Thanks
2 Answers
-
you should be able to specify height:'auto' on the web view. we have fixed some bugs around this in head. we are planning a point release on Monday or you can build from head.
-
Hi,
I went into a similar situation today. After some testing and investigation, I could solve the issue by using "vertical layouts".
Create a scrollview and make its layout=vertical. Then add different views into it. In these views you have whatever UI elements containing your dynamic text.
For these different views, the "top" property will be then relevant to the view preceding it, and not to the whole layout. No need to set the height since it will default to 'auto'.I hope this will help.
Regards,
Mohamad