I have a problem, I have a verticallayout containing two components(Panel, SplitPanel). I am trying to have the containing layout expand to use the full height of the screen. Below is the code and screenshot. Thanks for any help.
public void init() {
Window mainWindow = new Window(“Mymart Application”);
VerticalLayout layout = new VerticalLayout();
layout.setSizeFull();
layout.setSpacing(true);
setTheme("mytheme");
Panel headerPanel = new Panel();
headerPanel.addStyleName("bkgrnd");
Label headerLabel = new Label("My Store");
headerPanel.addComponent(headerLabel);
BaseView baseView = new BaseView();
baseView.setHeight("100%");
layout.addComponent(headerPanel);
layout.addComponent(baseView);
layout.setExpandRatio(baseView, 1.0f);
mainWindow.addComponent(layout);
setMainWindow(mainWindow);
}