code: protected void adjustHeight() {
  
          if ((m_scrollPanel != null) && (m_resourceItem != null)) {
              m_scrollPanel.getElement().getStyle().setPropertyPx(
                  "maxHeight",
                  getAvailableHeight(m_resourceItem.getOffsetHeight()));
          }
          center();
      }
docs: Adjusts the height of the scroll panel.<p>