GridLayout Issue

Hi,
I created five buttons using GridLayout. I added this Layout into Vertical Layout. but when I do the some operation in the page. Empty space creating whenever i do the operations int the same page. Please help anyone.

Hi there,

Could you share the code that is causing the behaviour you described?

Please find below code
final GridLayout gridLayout = new GridLayout(4,1);
gridLayout.addComponent(saveButton,0,0);
gridLayout.addComponent(updateButton,1,0);
gridLayout.addComponent(reportButton,2,0);
gridLayout.addComponent(undoButton,3,0);
gridLayout.setSpacing(true);
verticalLayoutScreen.setComponentAlignment(gridLayout, Alignment.MIDDLE_CENTER);

Could you also include the rest of the code for that particular screen, at least for the verticalLayoutScreen - component?