public void updateSize() {

        int availableHeight = CmsToolbarPopup.getAvailableHeight();
        int dialogWidth = CmsToolbarPopup.getAvailableWidth();

        A_CmsClipboardTab tab = m_tabs.getWidget(m_tabs.getSelectedIndex());
        int requiredHeight = tab.getRequiredHeight() + 31;
        int dialogHeight = availableHeight > requiredHeight ? requiredHeight : availableHeight;
        m_tabs.getParent().setHeight(dialogHeight + "px");
        getPopup().setWidth(dialogWidth);
        tab.getList().truncate("CLIPBOARD_TM", dialogWidth - 40);
        tab.getScrollPanel().onResizeDescendant();
    }
public void updateSize ( ) { int availableHeight = CmsToolbarPopup . getAvailableHeight ( ) ; int dialogWidth = CmsToolbarPopup . getAvailableWidth ( ) ; A_CmsClipboardTab tab = m_tabs . getWidget ( m_tabs . getSelectedIndex ( ) ) ; int requiredHeight = tab . getRequiredHeight ( ) + 31 ; int dialogHeight = availableHeight > requiredHeight ? requiredHeight : availableHeight ; m_tabs . getParent ( ) . setHeight ( dialogHeight + "px" ) ; getPopup ( ) . setWidth ( dialogWidth ) ; tab . getList ( ) . truncate ( "CLIPBOARD_TM" , dialogWidth - 40 ) ; tab . getScrollPanel ( ) . onResizeDescendant ( ) ; }
Updates the popup size according to the tab contents.<p>