TabSheet with Filtertable

I am using FilterTable inside Vaadin TabSheet. The Problem is that the height of Tab Content layout is incorrect for the FIRST TIME. If I switch between tabs, it displays correctly.

Coding:
private void createTabSheet(VerticalLayout contentlayout) {
// Tab sheet
tabsheet = new TabSheet();
tabsheet.addStyleName(ValoTheme.TABSHEET_FRAMED);
tabsheet.setImmediate(true);
contentlayout.addComponent(tabsheet);

    // Creating tabs
    for (CompetenceDTO tabTitles : superCompetences) {
        VerticalLayout layout = new VerticalLayout();
        layout.addStyleName("comp-tab");
        layout.setImmediate(true);

        tabsheet.addTab(new VerticalLayout(), tabTitles.getName(),
                FontAwesome.GLOBE);
    }

    tabsheet.addSelectedTabChangeListener(this);
}

After creating tabs, I created FilterTable and added it to tab content panel.
private void updateTab(Tab tab, int scompIndex) {
VerticalLayout tabContainer = (VerticalLayout) tab.getComponent();

    updateTableContent(superCompetences.get(scompIndex).getCompetenceId());
    tabContainer.removeAllComponents();
    tabContainer.addComponent(tableContainer);
}

Could anyone figure out the problem?