src/aria/popups/Popup.js
function (element) {
            var size = ariaUtilsSize.getSize(element), domUtil = ariaUtilsDom;
            domUtil.scrollIntoView(element);
            var position = this.popupContainer.calculatePosition(element);

            this.reference = element;
            this.referencePosition = position;
            this.referenceSize = size;
        }
function (element) {
            var size = ariaUtilsSize.getSize(element), domUtil = ariaUtilsDom;
            domUtil.scrollIntoView(element);
            var position = this.popupContainer.calculatePosition(element);

            this.reference = element;
            this.referencePosition = position;
            this.referenceSize = size;
        }
function ( element ) { var size = ariaUtilsSize . getSize ( element ) , domUtil = ariaUtilsDom ; domUtil . scrollIntoView ( element ) ; var position = this . popupContainer . calculatePosition ( element ) ; this . reference = element ; this . referencePosition = position ; this . referenceSize = size ; }
Set the given HTML element as the reference which will be used to position the popup. Calculate the position
and size of the element
@param {HTMLElement} element Element which will be used as a reference to position the popup
Set the given HTML element as the reference which will be used to position the popup . Calculate the position and size of the element