code: public static Element getPositioningParent(Element child) {
  
          Element parent = child.getParentElement();
          while (parent != null) {
              String parentPositioning = CmsDomUtil.getCurrentStyle(parent, Style.position);
              if (Position.RELATIVE.getCssName().equals(parentPositioning)
                  || Position.ABSOLUTE.getCssName().equals(parentPositioning)
                  || Position.FIXED.getCssName().equals(parentPositioning)) {
                  return parent;
              }
              parent = parent.getParentElement();
          }
          return RootPanel.getBodyElement();
      }
docs: Returns the next ancestor to the element with an absolute, fixed or relative position.<p>
  
  @param child the element
  
  @return the positioning parent element (may be <code>null</code>)