src/tooltip.js
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");
    }
  }
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");
    }
  }
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" ) ; } }
only need to take into account top and bottom offset for this usecase
only need to take into account top and bottom offset for this usecase