int totalFlex = 0;
int totalHeight = 0;
int maxWidth = 0;
for (int i = 0; i < container.getItemCount(); i++) {
BoxComponent c = (BoxComponent) container.getItem(i);
c.el().setStyleAttribute("margin", "0px");
VBoxLayoutData layoutData = (VBoxLayoutData) ComponentHelper.getLayoutData(c);
if (layoutData == null) {
layoutData = new VBoxLayoutData();
}
Margins cm = layoutData.getMargins();