In this simple layout, the buttons show at the bottom of the screen, but when I expand enough of the Details, or make the window smaller, the buttons are pushed outside and I get two vertical scrollbars.
How can I make sure the buttons remain at the bottom?
Code:
@Route(value="/test2")
public class Test2 extends VerticalLayout {
public Test2() {
this.setSizeFull();
var innerLayout = new VerticalLayout();
innerLayout.setSizeFull();
add(innerLayout);
var buttonBarLayout = new HorizontalLayout(new Button("Button 1"), new Button("Button 2"), new Button("Button 3"));;
add(buttonBarLayout);
var tabSheet = new TabSheet();
tabSheet.setSizeFull();
innerLayout.add(tabSheet);
var outerFormLayout = new VerticalLayout();
outerFormLayout.setSizeFull();
for(int sectionIdx=1; sectionIdx<5; sectionIdx++) {
var formLayout = new FormLayout();
for(int idx=1; idx<10; idx++) {
formLayout.add(new TextField("Field " + idx));
}
outerFormLayout.add(new Details("Section " + sectionIdx, formLayout));
}
tabSheet.add("Tab 1", outerFormLayout);
}
}