docs: public int getRequiredWidth() {
  
          Element clone = CmsDomUtil.clone(getElement());
          clone.getStyle().setPosition(Position.ABSOLUTE);
          RootPanel.getBodyElement().appendChild(clone);
          int result = clone.getOffsetWidth();
          clone.removeFromParent();
          return result;
      }