Hello, I want to know it is possible to create scroll able main window with footer (footer should be all time be on the window bottom, but should not be all time visible).
Panel rootLayout = new Panel();
rootLayout.addStyleName(Runo.PANEL_LIGHT);
rootLayout.addStyleName(VB.WHITE);
rootLayout.setSizeFull();
rootLayout.setScrollable(true);
VerticalLayout content = (VerticalLayout) rootLayout.getContent();
content.setMargin(false);
//content.setSizeFull();
VerticalLayout layout = new VerticalLayout();
layout.setSizeFull();
//layout.setSizeUndefined();
VerticalLayout headerLayout = new VBHeaderLayout();
VerticalLayout footerLayout = new VBFooterLayout();
VerticalLayout loginLayout = new LoginLayout();
VerticalLayout contentLayout = new VerticalLayout();
contentLayout.setSizeFull();
contentLayout.addComponent(loginLayout);
layout.addComponent(headerLayout);
layout.addComponent(contentLayout);
layout.addComponent(footerLayout);
layout.setComponentAlignment(headerLayout, Alignment.TOP_CENTER);
layout.setComponentAlignment(footerLayout, Alignment.BOTTOM_CENTER);
rootLayout.addComponent(layout);
Using this code I able only to locate footer layout bottom inside panel content layout, not main window. I found only one opportunity to locate footer on the main window bottom, is set full size for panel content, but if panel content is set size full, this panel will not be longer scroll able. Any suggest how it is possible to do?