Im using Vaadin Version 7.4.5 then when I use setExandRation on my component to 1.0f it will accomodate all the space…
What is the problem of my code ?
HorizontalLayout formLayout = new HorizontalLayout();
formLayout.setSizeFull();
formLayout.addStyleName("form-layout");
layout.addComponent(formLayout);
layout.setExpandRatio(formLayout, 1.0f);
FormLayout coopInfo = new FormLayout();
formLayout.addComponent(coopInfo);
ComboBox coopName = new ComboBox();
coopName.setCaption("Coop name");
coopInfo.addComponent(coopName);
TextField coopNumber = new TextField();
coopNumber.setCaption("Coop #");
coopInfo.addComponent(coopNumber);