code: public static CmsPositionBean getBoundingClientRect(Element panel, boolean addScroll) {
  
          CmsPositionBean result = new CmsPositionBean();
          getBoundingClientRect(
              panel,
              result,
              addScroll ? Window.getScrollLeft() : 0,
              addScroll ? Window.getScrollTop() : 0);
          return result;
      }
docs: Returns the bounding rectangle dimensions of the element including all floated elements.<p>
  
  @param panel the panel
  @param addScroll if true, the result will contain the coordinates in the document's coordinate system, not the viewport coordinate system
  
  @return the position info