src/aria/utils/resize/Resize.js
function (evt) {

            var movable = this.getMovable();
            if (movable && movable.style) {
                var mouseInitPos = this._mouseInitialPosition;
                var movableInitPos = this._movableInitialGeometry;

                var offsetX = this._vertical ? 0 : evt.clientX - mouseInitPos.left;
                var offsetY = this._horizontal ? 0 : evt.clientY - mouseInitPos.top;
                var geometry = ariaUtilsJson.copy(movableInitPos), dw, dh;

                geometry = this._resizeWitHandlers(geometry, this.cursor, offsetX, offsetY);

                var chkWidth = /sw-resize|nw-resize|w-resize/.test(this.cursor), chkHeight = /nw-resize|ne-resize|n-resize/.test(this.cursor), minWidth = geometry.width < this.minWidth, minHeight = geometry.height < this.minHeight;

                if (minWidth) {
                    geometry.width = this.minWidth;
                }
                if (minHeight) {
                    geometry.height = this.minHeight;
                }

                dw = this._movableGeometry.x + this._movableGeometry.width;
                dh = this._movableGeometry.y + this._movableGeometry.height;
                if (minWidth && chkWidth) {
                    geometry.x = dw - this.minWidth;
                }
                if (minHeight && chkHeight) {
                    geometry.y = dh - this.minHeight;
                }
                // for resizing the dialog
                movable.style.cursor = this.cursor;
                movable.style.top = (geometry.y - this._baseMovableOffset.top) + "px";
                movable.style.left = (geometry.x - this._baseMovableOffset.left) + "px";
                movable.style.height = (geometry.height - this._baseMovableOffset.height) + "px";
                movable.style.width = (geometry.width - this._baseMovableOffset.width) + "px";

                this.posY = mouseInitPos.top + geometry.y - movableInitPos.y;
                this.posX = mouseInitPos.left + geometry.x - movableInitPos.x;
                this._movableGeometry = geometry;
                this.$raiseEvent("resize");
            }
        }
function (evt) {

            var movable = this.getMovable();
            if (movable && movable.style) {
                var mouseInitPos = this._mouseInitialPosition;
                var movableInitPos = this._movableInitialGeometry;

                var offsetX = this._vertical ? 0 : evt.clientX - mouseInitPos.left;
                var offsetY = this._horizontal ? 0 : evt.clientY - mouseInitPos.top;
                var geometry = ariaUtilsJson.copy(movableInitPos), dw, dh;

                geometry = this._resizeWitHandlers(geometry, this.cursor, offsetX, offsetY);

                var chkWidth = /sw-resize|nw-resize|w-resize/.test(this.cursor), chkHeight = /nw-resize|ne-resize|n-resize/.test(this.cursor), minWidth = geometry.width < this.minWidth, minHeight = geometry.height < this.minHeight;

                if (minWidth) {
                    geometry.width = this.minWidth;
                }
                if (minHeight) {
                    geometry.height = this.minHeight;
                }

                dw = this._movableGeometry.x + this._movableGeometry.width;
                dh = this._movableGeometry.y + this._movableGeometry.height;
                if (minWidth && chkWidth) {
                    geometry.x = dw - this.minWidth;
                }
                if (minHeight && chkHeight) {
                    geometry.y = dh - this.minHeight;
                }
                // for resizing the dialog
                movable.style.cursor = this.cursor;
                movable.style.top = (geometry.y - this._baseMovableOffset.top) + "px";
                movable.style.left = (geometry.x - this._baseMovableOffset.left) + "px";
                movable.style.height = (geometry.height - this._baseMovableOffset.height) + "px";
                movable.style.width = (geometry.width - this._baseMovableOffset.width) + "px";

                this.posY = mouseInitPos.top + geometry.y - movableInitPos.y;
                this.posX = mouseInitPos.left + geometry.x - movableInitPos.x;
                this._movableGeometry = geometry;
                this.$raiseEvent("resize");
            }
        }
function ( evt ) { var movable = this . getMovable ( ) ; if ( movable && movable . style ) { var mouseInitPos = this . _mouseInitialPosition ; var movableInitPos = this . _movableInitialGeometry ; var offsetX = this . _vertical ? 0 : evt . clientX - mouseInitPos . left ; var offsetY = this . _horizontal ? 0 : evt . clientY - mouseInitPos . top ; var geometry = ariaUtilsJson . copy ( movableInitPos ) , dw , dh ; geometry = this . _resizeWitHandlers ( geometry , this . cursor , offsetX , offsetY ) ; var chkWidth = / sw-resize|nw-resize|w-resize / . test ( this . cursor ) , chkHeight = / nw-resize|ne-resize|n-resize / . test ( this . cursor ) , minWidth = geometry . width < this . minWidth , minHeight = geometry . height < this . minHeight ; if ( minWidth ) { geometry . width = this . minWidth ; } if ( minHeight ) { geometry . height = this . minHeight ; } dw = this . _movableGeometry . x + this . _movableGeometry . width ; dh = this . _movableGeometry . y + this . _movableGeometry . height ; if ( minWidth && chkWidth ) { geometry . x = dw - this . minWidth ; } if ( minHeight && chkHeight ) { geometry . y = dh - this . minHeight ; } // for resizing the dialog movable . style . cursor = this . cursor ; movable . style . top = ( geometry . y - this . _baseMovableOffset . top ) + "px" ; movable . style . left = ( geometry . x - this . _baseMovableOffset . left ) + "px" ; movable . style . height = ( geometry . height - this . _baseMovableOffset . height ) + "px" ; movable . style . width = ( geometry . width - this . _baseMovableOffset . width ) + "px" ; this . posY = mouseInitPos . top + geometry . y - movableInitPos . y ; this . posX = mouseInitPos . left + geometry . x - movableInitPos . x ; this . _movableGeometry = geometry ; this . $raiseEvent ( "resize" ) ; } }
Handle the mouse move during a drag by setting the correct position on the resize handle element. It will
Raise the resize event
@param {aria.DomEvent} evt
Handle the mouse move during a drag by setting the correct position on the resize handle element . It will Raise the resize event