I am playing around with layouts. But having a challenge in positioning containers within containers.
For instance I have one VerticalLayout spaning whole window. But would like to place inside two HorizontalLayout both with height 35px and width spanning across the window, however, one should be pinned on the top and the other pinned at the bottm of the window, with a content VerticalLayout inbetween…both fixed. I tried this but it failed:
VerticalLayout root = new VerticalLayout();
VerticalLayout content = new VerticalLayout();
HorizontalLayout header = new HorizontalLayout();
HorizontalLayout footer = new HorizontalLayout();
root.setSizeFull();
header.setHeight("35px");
header.setWidth("100%");
footer.setHeight("35px");
footer.setWidth("100%");
header.setAlignSelf(Alignment.START);
footer.setAlignSelf(Alignment.BASELINE);
root.add(header, content, footer);
Now could you advise where i can find documentation about styles that defined by Vaadin like this one you used…“flex-grow”,“1”. Is this drawn from the Vaadin themes?