Combine AbsolutLayout and VerticalLayout -> FullScreen

Hallo

it is possible to combine an AbsolutLayout with 90px and the rest oft the screen in the VerticalLayout (100%)
Like This!


head 90px

Rest of screen
(varible)

Thenks
Patrick

Yes, by using an outer layout (you always need a single root component). So the structure would be like this:

VerticalLayout (outer)

  • AbsoluteLayout (header)
  • VerticalLayout (body)

set the sizing like this:

header.setHeight("90px");
header.setWidth("100%");

body.setSizeFull();

outer.setSizeFull();
outer.addComponents(header, body);
outer.setExpandRatio(body, 1);

yourUI.setContent(outer);