I have a scrollview that is defined as follows:
var view = Ti.UI.createScrollView({
height: '100%',
width: '100%',
contentHeight: 'auto',
backgroundColor: '#fff',
showVerticalScrollIndicator: true,
layout: 'vertical'
});
and at the bottom of the scrollview, I have a tableview. The user can press a button to insert a new row at the top of the tableview. However, when they do this, the scrollview's content area doesn't grow and therefore, the first row (at the bottom of the tableview) doesn't show anymore. Each time the user add's a new row, the oldest one on the bottom doesn't show anymore.
If I were explicitly setting the contentHeight, then I could just add the size of the row each time the user added a new row. I would prefer not to do this though.
Is there any way to automatically grow the scrollview to fit it's children, including new tableview rows?