src/aria/utils/resize/Resize.js
function (element) {
            var position = ariaUtilsDom.getOffset(element);
            position.width = element.offsetWidth;
            position.height = element.offsetHeight;
            var style = element.style;
            this._elementInitialPosition = position;
            style.position = "absolute";
            style.left = position.left + "px";
            style.top = position.top + "px";
            style.height = position.height + "px";
            style.width = position.width + "px";
        }
function (element) {
            var position = ariaUtilsDom.getOffset(element);
            position.width = element.offsetWidth;
            position.height = element.offsetHeight;
            var style = element.style;
            this._elementInitialPosition = position;
            style.position = "absolute";
            style.left = position.left + "px";
            style.top = position.top + "px";
            style.height = position.height + "px";
            style.width = position.width + "px";
        }
function ( element ) { var position = ariaUtilsDom . getOffset ( element ) ; position . width = element . offsetWidth ; position . height = element . offsetHeight ; var style = element . style ; this . _elementInitialPosition = position ; style . position = "absolute" ; style . left = position . left + "px" ; style . top = position . top + "px" ; style . height = position . height + "px" ; style . width = position . width + "px" ; }
Compute the initial position and initial size of the element and set its style properties
@protected
@param {HTMLElement} element
Compute the initial position and initial size of the element and set its style properties