code: public void updateSize() {
  
          int width = CmsToolbarPopup.getAvailableWidth();
          getPopup().setWidth(width);
          CmsListTab tab = m_tabs.getWidget(m_tabs.getSelectedIndex());
          tab.truncate(TM_LITST_MENU, width);
          int availableHeight = CmsToolbarPopup.getAvailableHeight();
          int requiredHeight = tab.getRequiredHeight() + 44;
          int height = (availableHeight > requiredHeight) && (requiredHeight > 50) ? requiredHeight : availableHeight;
          m_tabs.getParent().setHeight(height + "px");
          tab.getScrollPanel().onResizeDescendant();
      }
docs: Updates the dialog size according to the current tab content.<p>