errorIndicatorElement.getStyle().setDisplay(Display.NONE);\r
errorIndicatorElement.setInnerText(" "); // needed for IE\r
desc.setClassName("v-form-description");\r
+ fieldSet.appendChild(desc); // Adding description for initial padding\r
+ // measurements, removed later if no\r
+ // description is set\r
fieldSet.appendChild(fieldContainer);\r
errorMessage.setVisible(false);\r
errorMessage.setStyleName(CLASSNAME + "-errormessage");\r
\r
@Override\r
public void setWidth(String width) {\r
- if (borderPaddingHorizontal < 0 && desc.hasParentElement()) {\r
+ if (borderPaddingHorizontal < 0) {\r
// measure excess size lazily after stylename setting, but before\r
- // setting width if description is attached\r
+ // setting width\r
int ow = getOffsetWidth();\r
int dow = desc.getOffsetWidth();\r
borderPaddingHorizontal = ow - dow;\r