code: public static void position(Element elem, Element referenceElement) {
  
          int dy = 25;
          Style style = elem.getStyle();
          style.setLeft(0, Unit.PX);
          style.setTop(0, Unit.PX);
          int myX = elem.getAbsoluteLeft();
          int myY = elem.getAbsoluteTop();
          int refX = referenceElement.getAbsoluteLeft();
          int refY = referenceElement.getAbsoluteTop();
          int refWidth = referenceElement.getOffsetWidth();
          int newX = (refX - myX - ((2 * elem.getOffsetWidth()) / 3)) + (refWidth / 2);
          int newY = (refY - myY) + dy;
          style.setLeft(newX, Unit.PX);
          style.setTop(newY, Unit.PX);
      }
docs: Positions the tooltip.<p>
  
  
  @param elem the tooltip element
  @param referenceElement the tooltip icon element