code: public void setDialogSize(int width, int height) {
  
          if (height > 50) {
              m_height = height;
              m_parentPanel.setHeight(m_height + "px");
          }
          m_width = width;
          m_parentPanel.setWidth(m_width + "px");
          truncateTabs();
      }
docs: Sets the size of the gallery parent panel and triggers the event to the tab.<p>
  
  @param width the new width
  @param height the new height