src/aria/utils/resize/Resize.js
function (coord) {
            this.posX = coord.x;
            this.posY = coord.y;
            this._mouseInitialPosition = {
                left : coord.x,
                top : coord.y
            };
            var element = this.getElement(true), movable, document = Aria.$window.document;
            // This will prevent text selection on IE on the element
            element.onselectstart = Aria.returnFalse;
            document.onselectstart = Aria.returnFalse;
            this._setElementStyle(element);
            this._setBoundary();
            movable = this.getMovable();
            if (movable) {
                // This will prevent text selection on IE on the movable
                movable.onselectstart = Aria.returnFalse;
                this._movableInitialGeometry = ariaUtilsDom.getGeometry(movable);
                this._movableGeometry = ariaUtilsJson.copy(this._movableInitialGeometry);
                this._baseMovableOffset = {
                    left : this._movableGeometry.x - movable.offsetLeft,
                    top : this._movableGeometry.y - movable.offsetTop,
                    height : this._movableGeometry.height - movable.offsetHeight,
                    width : this._movableGeometry.width - movable.offsetWidth
                };
                this.$raiseEvent("beforeresize");
            }
        }
function (coord) {
            this.posX = coord.x;
            this.posY = coord.y;
            this._mouseInitialPosition = {
                left : coord.x,
                top : coord.y
            };
            var element = this.getElement(true), movable, document = Aria.$window.document;
            // This will prevent text selection on IE on the element
            element.onselectstart = Aria.returnFalse;
            document.onselectstart = Aria.returnFalse;
            this._setElementStyle(element);
            this._setBoundary();
            movable = this.getMovable();
            if (movable) {
                // This will prevent text selection on IE on the movable
                movable.onselectstart = Aria.returnFalse;
                this._movableInitialGeometry = ariaUtilsDom.getGeometry(movable);
                this._movableGeometry = ariaUtilsJson.copy(this._movableInitialGeometry);
                this._baseMovableOffset = {
                    left : this._movableGeometry.x - movable.offsetLeft,
                    top : this._movableGeometry.y - movable.offsetTop,
                    height : this._movableGeometry.height - movable.offsetHeight,
                    width : this._movableGeometry.width - movable.offsetWidth
                };
                this.$raiseEvent("beforeresize");
            }
        }
function ( coord ) { this . posX = coord . x ; this . posY = coord . y ; this . _mouseInitialPosition = { left : coord . x , top : coord . y } ; var element = this . getElement ( true ) , movable , document = Aria . $window . document ; // This will prevent text selection on IE on the element element . onselectstart = Aria . returnFalse ; document . onselectstart = Aria . returnFalse ; this . _setElementStyle ( element ) ; this . _setBoundary ( ) ; movable = this . getMovable ( ) ; if ( movable ) { // This will prevent text selection on IE on the movable movable . onselectstart = Aria . returnFalse ; this . _movableInitialGeometry = ariaUtilsDom . getGeometry ( movable ) ; this . _movableGeometry = ariaUtilsJson . copy ( this . _movableInitialGeometry ) ; this . _baseMovableOffset = { left : this . _movableGeometry . x - movable . offsetLeft , top : this . _movableGeometry . y - movable . offsetTop , height : this . _movableGeometry . height - movable . offsetHeight , width : this . _movableGeometry . width - movable . offsetWidth } ; this . $raiseEvent ( "beforeresize" ) ; } }
Handle the resize start. Initialize some reference geometries and raise the beforeresize event
@param {Object} coord Contains the x and y coordinates of the mouse when a drag start has been detected on
resize handle
Handle the resize start . Initialize some reference geometries and raise the beforeresize event