Hi
I have a next piece of code:
Code:
FormPanel formPanel = new FormPanel();
formPanel.setHeaderVisible(false);
formPanel.setLabelWidth(100);
formPanel.setFieldWidth(210);
formPanel.setIconStyle("icon-form");
formPanel.setFrame(true);
formPanel.setWidth(400);
formPanel.setButtonAlign(Style.HorizontalAlignment.CENTER);
formPanel.setScrollMode(Style.Scroll.AUTO);

DateField birthDateField = new DateField();
birthDateField.setFieldLabel(MCMessages.msg.contact_birthdate());       birthDateField.getPropertyEditor().setFormat(DateTimeFormat.getFormat("dd.MM.yyyy"));
birthDateField.setWidth(193);
formPanel.add(birthDateField);
DateField resizing doesn't work and I have that field bigger than others. Resizing of other fields in my FormPanel doesn't work too. If I write
Code:
formPanel.setFieldWidth(0);
than resizing of all fields works except for DateField. And if I write
Code:
formPanel.setFieldWidth(-1);
than resizing works well for all fields in the FormPanel