calculateViewportPosition () {

        const dom_rect  = this.element_rect
        const cont_rect = this.container_rect
        const left      = dom_rect.left - cont_rect.left + this.container.scrollLeft
        const top       = dom_rect.top - cont_rect.top + this.container.scrollTop
        const right     = dom_rect.right - cont_rect.right
        const bottom    = dom_rect.bottom - cont_rect.bottom
    
        return {
            left    : left,
            top     : top,
            right   : right,
            bottom  : bottom,
            width   : dom_rect.width,
            height  : dom_rect.height
        }
    }
/**
     * Gets the element's position relative to the viewport so that we can decide
     * the best alignment for the tooltip
     *
     * @returns {{left: number, top: number, right: number, bottom: number, width: Number, height: Number}}
     */
Gets the element's position relative to the viewport so that we can decide
the best alignment for the tooltip


Gets the element ' s position relative to the viewport so that we can decide the best alignment for the tooltip
calculateViewportPosition () {
        const dom_rect  = this.element_rect
        const cont_rect = this.container_rect
        const left      = dom_rect.left - cont_rect.left + this.container.scrollLeft
        const top       = dom_rect.top - cont_rect.top + this.container.scrollTop
        const right     = dom_rect.right - cont_rect.right
        const bottom    = dom_rect.bottom - cont_rect.bottom
        return {
            left    : left,
            top     : top,
            right   : right,
            bottom  : bottom,
            width   : dom_rect.width,
            height  : dom_rect.height
        }
    }
calculateViewportPosition ( ) { const dom_rect = this . element_rect const cont_rect = this . container_rect const left = dom_rect . left - cont_rect . left + this . container . scrollLeft const top = dom_rect . top - cont_rect . top + this . container . scrollTop const right = dom_rect . right - cont_rect . right const bottom = dom_rect . bottom - cont_rect . bottom return { left : left , top : top , right : right , bottom : bottom , width : dom_rect . width , height : dom_rect . height } }
Gets the element's position relative to the viewport so that we can decide
 the best alignment for the tooltip
Gets the element ' s position relative to the viewport so that we can decide the best alignment for the tooltip