Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Layout problem with Table
Hey,
i have a problem with the layout of my table.
I have a vertical layout and i insert some compononents. At the End i insert a table and i will that this table fill. But i think i done all methods to fill this and i can“t find a solution.
I hope everybody can help me!
Here is my code:
Create layout:
/**
* creates the layout
*/
private void createMainLayout()
{
this.mainLayout = new VerticalLayout();
this.mainLayout.setSizeUndefined();
// this.mainLayout.setHeight("100%");
this.mainLayout.setSizeFull();
setCompositionRoot(this.mainLayout);
}
Create Table:
/**
* creates the table
*/
private void createTable()
{
this.table = new Table();
this.table.setSizeFull();
this.table.setSelectable(true);
this.table.setImmediate(true);
this.table.addListener(new ColumnResizeListener()
{
public void columnResize(ColumnResizeEvent event)
{
processColumnResize(event);
}
});
getLayout().addComponent(this.table);
// getLayout().setExpandRatio(this.table, 1);
}
And at least a screenshot that you can see my problem!
In createMainLayout try this :
this.mainLayout.setSizeFull();
this.setSizeFull();
CustomComponent has another root wchich needs to be sized independently
i think i found my mistake.
The Table has pages and if i set the lines of this pages up or set a fix height of the table the table height works ...