Dear all, I am dealing with the following issue for more that two days and can't find a solution:

content of the nested container1 with VBoxLayout is not shown if the parent container2 also has VBoxLayout:

ContentPanel mainPanel = new ContentPanel(new FitLayout());
mainPanel.setSize(500, 500);

LayoutContainer container1 = new LayoutContainer(new VBoxLayout());
container1.add(new Button("button2Text"), new VBoxLayoutData());

LayoutContainer container2 = new LayoutContainer(new VBoxLayout());
container2.add(container1, new VBoxLayoutData());
container2.add(new Button("button1Text"), new VBoxLayoutData());
If the container1 has FlowLayout then both buttons are visible... What is wrong here or what I am missing?
Many thanks in advance.