code: function() {
      if ($(yasqe.getWrapperElement()).offset().top >= tooltip.offset().top) {
        //shit, move the tooltip down. The tooltip now hovers over the top edge of the yasqe instance
        tooltip.css("bottom", "auto");
        tooltip.css("top", "26px");
      }
    }
docs: only need to take into account top and bottom offset for this usecase