Browse Source

Fix GridDetailsLayoutExpandTest (#8556)

tags/8.1.0.alpha1
Henri Sara 7 years ago
parent
commit
10be6badbe

+ 2
- 0
uitest/src/main/java/com/vaadin/tests/components/grid/GridDetailsLayoutExpand.java View File



grid.setDetailsGenerator(item -> { grid.setDetailsGenerator(item -> {
final HorizontalLayout detailsLayout = new HorizontalLayout(); final HorizontalLayout detailsLayout = new HorizontalLayout();
detailsLayout.setSpacing(false);
detailsLayout.setSizeFull(); detailsLayout.setSizeFull();
detailsLayout.setHeightUndefined(); detailsLayout.setHeightUndefined();


// layout2 second element of the detailsLayout, taking the rest // layout2 second element of the detailsLayout, taking the rest
// of the available space // of the available space
final HorizontalLayout layout2 = new HorizontalLayout(); final HorizontalLayout layout2 = new HorizontalLayout();
layout2.setSpacing(false);
layout2.setSizeFull(); layout2.setSizeFull();
layout2.setHeightUndefined(); layout2.setHeightUndefined();
detailsLayout.addComponent(layout2); detailsLayout.addComponent(layout2);

Loading…
Cancel
Save