code: function (type, element, source) {
      switch(type) {
        case 'right':
          return {
            left: 10 + source.offsetWidth,
            top: (element.offsetHeight / -2) + (source.offsetHeight / 2)
          };
        case 'left':
          return {
            left: -10 - element.offsetWidth,
            top: (element.offsetHeight / -2) + (source.offsetHeight / 2)
          };
        case 'top':
          return {
            left: (element.offsetWidth / -2) + (source.offsetWidth / 2),
            top: -10 - element.offsetHeight
          };
        case 'bottom':
        default:
          return {
            left: (element.offsetWidth / -2) + (source.offsetWidth / 2),
            top: 10 + source.offsetHeight
          };
      }
    }
docs: Offset calculations for placement: bottom.
  
  @param {Object} element tooltip
  @param {Object} source initiating element
  @api private