Hi!
I have a VerticalPanel with different widgets. I want that all widget resize when I resize the panel. How to do it?

public class TestPanel extends LayoutContainer{
private Image image = new Image("1.jpg");
private ContentPanel contentPanel = new ContentPanel(new FitLayout());
private VerticalPanel verticalPanel = new VerticalPanel();
@Override
protected void onRender(Element parent, int index) {
super.onRender(parent, index);

verticalPanel.add(image);
verticalPanel.add(new Button("Test Button"));

contentPanel.setHeaderVisible(false);
contentPanel.setBorders(true);
contentPanel.add(verticalPanel);

add(contentPanel);
}

@Override
protected void onResize(int width, int height) {
super.onResize(width, height);
contentPanel.setSize(width, height);
}
}