code: void updateMaxWidth() {
  
          Element base = getWidget().getElement();
          int availableWidth = base.getOffsetWidth();
          int requiredWidth = 0;
          NodeList<Element> children = CmsDomUtil.querySelectorAll("div > a, div > span", base);
          for (int i = 0; i < children.getLength(); i++) {
              Element child = children.getItem(i);
              Style style = child.getFirstChildElement().getStyle();
              style.setProperty("maxWidth", "none");
              requiredWidth += child.getOffsetWidth();
              style.clearProperty("maxWidth");
          }
          if (requiredWidth > availableWidth) {
              int padding = 30 + ((children.getLength() - 1) * 35);
              int maxWidth = (availableWidth - padding) / children.getLength();
              setMaxWidth(maxWidth + "px");
          } else {
              setMaxWidth("none");
          }
      }
docs: Updates the entry max-width according to the available space.<p>