Updating TableView Height After Content Changes

I have a TableView that gets initialized on a page with some number of cells, and it's inside of a scrollview. And by default, the height of the TableView is the height of its content (so there's no scrolling within the table).

Some time later, the content of the table changes, and I do this by setting the root of the TableView to a new TableRoot with my new content. The problem is that when this happens, the height of the TableView doesn't change. So it takes up the same amount of space on the page as it used to. And if the content is taller than the height of the TableView, it turns on scrolling within the table.

I'd like to tell the table to resize to fit the content so that it doesn't scroll within the table.

Sign In or Register to comment.