cb.setImmediate(true);
hidingControls.addComponent(cb);
elp.setVisible(false);
el.setHeight("700px");
addFields(el);
Component firstComponent = el.getComponentIterator().next();
firstComponent.setSizeFull();
el.setExpandRatio(firstComponent, 1);
lo.addComponent(elp);
HorizontalLayout elh = new HorizontalLayout();
Panel elhp = new LayoutTestingPanel(
"ExpandLayout width first component expanded; horizontal", elh);
cb = new CheckBox("ExpandLayout (horizontal)",
new MethodProperty<Boolean>(elhp, "visible"));
cb.setImmediate(true);
hidingControls.addComponent(cb);
elhp.setVisible(false);
elh.setWidth("2000px");
elh.setHeight("100px");
addFields(elh);
Component firstComponentElh = elh.getComponentIterator().next();
firstComponentElh.setSizeFull();
elh.setExpandRatio(firstComponentElh, 1);
lo.addComponent(elhp);
// CustomLayout
VerticalLayout cl = new VerticalLayout();