code: private int getWidthOfWidestItem() {
  
          int maxWidth = 0;
  
          for (CmsContextMenuItemWidget item : m_menuItems) {
              item.getElement().getStyle().clearWidth();
              int itemWidth = measureWidth(item);
              if (itemWidth > maxWidth) {
                  maxWidth = itemWidth;
              }
          }
  
          return maxWidth;
      }
docs: Returns the item width.<p>
  
  @return the item width