Recalculating size needed by table

We have table component nested into a tabview. When I first acces the page there are no rows. Then an entry is added via a modal dialog which also updates the table. I can see the entry in the table. However the table size is not recalculated. With that new entry the table needs more space. When I click on a different tab and switch back to that tab with the table, the table size is recalculated correctly.
So I assume on switching tabs something happens to the table as well. Is there some method I can call to trigger that behaviour?