* DefaultUnitConverter}'s default dialog font
*/
public int maximumSize(LayoutPanel layoutPanel, List<Widget> widgets,
FormLayout.Measure minMeasure, FormLayout.Measure prefMeasure,
FormLayout.Measure defaultMeasure) {
final FontMetrics metrics = new FontMetrics();
DOM.setStyleAttribute(metrics.getElement(), "whiteSpace", "nowrap");
return metrics.stringBoxSize(prototype).width;
}