src/core/popover.js
/**
   * Shows the popover on the right of the given position
   * @param {Position} elementPosition
   */
Shows the popover on the right of the given position
@param {Position} elementPosition
Shows the popover on the right of the given position @param { Position } elementPosition
positionOnRight(elementPosition) {
    const popoverMargin = this.options.padding + 10;  
    this.node.style.left = `${elementPosition.right + popoverMargin}px`;
    this.node.style.top = `${elementPosition.top - this.options.padding}px`;
    this.node.style.right = '';
    this.node.style.bottom = '';
    this.tipNode.classList.add('left');
  }
positionOnRight ( elementPosition ) { const popoverMargin = this . options . padding + 10 ; this . node . style . left = ` ${ elementPosition . right + popoverMargin } ` ; this . node . style . top = ` ${ elementPosition . top - this . options . padding } ` ; this . node . style . right = '' ; this . node . style . bottom = '' ; this . tipNode . classList . add ( 'left' ) ; }
Shows the popover on the right of the given position
 @param {Position} elementPosition
Shows the popover on the right of the given position @param { Position } elementPosition
// adding 10 to give it a little distance from the element