src/aria/widgets/container/Dialog.js
function () {
            if (!this._popup || !this._popup.isOpen || this._resizable) {
                // maybe the popup was closed while loading aria.utils.resize.Resize,
                // or it was closed and re-opened very quickly (and we should avoid
                // creating the _resizable object twice)
                return;
            }
            var handleArr = this._handlesArr;
            if (handleArr) {
                this._resizable = {};
                for (var i = 0, ii = handleArr.length; i < ii; i++) {
                    var handleElement = this.getResizeHandle(i), axis = null, cursor;
                    cursor = handleArr[i];
                    if (cursor == "n-resize" || cursor == "s-resize") {
                        axis = "y";
                    }
                    if (cursor == "w-resize" || cursor == "e-resize") {
                        axis = "x";
                    }
                    this._resizable[cursor] = new aria.utils.resize.Resize(this._domElt, {
                        handle : handleElement,
                        cursor : cursor,
                        axis : axis,
                        constrainTo : this._popupContainer.getContainerRef()
                    });
                    this._resizable[cursor].$on({
                        "beforeresize" : {
                            fn : this._onResizeStart,
                            scope : this
                        },
                        "resize" : {
                            fn : this._onResizing,
                            scope : this
                        },
                        "resizeend" : {
                            fn : this._onResizeEnd,
                            scope : this
                        }
                    });
                }
            }
        }
function () {
            if (!this._popup || !this._popup.isOpen || this._resizable) {
                // maybe the popup was closed while loading aria.utils.resize.Resize,
                // or it was closed and re-opened very quickly (and we should avoid
                // creating the _resizable object twice)
                return;
            }
            var handleArr = this._handlesArr;
            if (handleArr) {
                this._resizable = {};
                for (var i = 0, ii = handleArr.length; i < ii; i++) {
                    var handleElement = this.getResizeHandle(i), axis = null, cursor;
                    cursor = handleArr[i];
                    if (cursor == "n-resize" || cursor == "s-resize") {
                        axis = "y";
                    }
                    if (cursor == "w-resize" || cursor == "e-resize") {
                        axis = "x";
                    }
                    this._resizable[cursor] = new aria.utils.resize.Resize(this._domElt, {
                        handle : handleElement,
                        cursor : cursor,
                        axis : axis,
                        constrainTo : this._popupContainer.getContainerRef()
                    });
                    this._resizable[cursor].$on({
                        "beforeresize" : {
                            fn : this._onResizeStart,
                            scope : this
                        },
                        "resize" : {
                            fn : this._onResizing,
                            scope : this
                        },
                        "resizeend" : {
                            fn : this._onResizeEnd,
                            scope : this
                        }
                    });
                }
            }
        }
function ( ) { if ( ! this . _popup || ! this . _popup . isOpen || this . _resizable ) { // maybe the popup was closed while loading aria.utils.resize.Resize, // or it was closed and re-opened very quickly (and we should avoid // creating the _resizable object twice) return ; } var handleArr = this . _handlesArr ; if ( handleArr ) { this . _resizable = { } ; for ( var i = 0 , ii = handleArr . length ; i < ii ; i ++ ) { var handleElement = this . getResizeHandle ( i ) , axis = null , cursor ; cursor = handleArr [ i ] ; if ( cursor == "n-resize" || cursor == "s-resize" ) { axis = "y" ; } if ( cursor == "w-resize" || cursor == "e-resize" ) { axis = "x" ; } this . _resizable [ cursor ] = new aria . utils . resize . Resize ( this . _domElt , { handle : handleElement , cursor : cursor , axis : axis , constrainTo : this . _popupContainer . getContainerRef ( ) } ) ; this . _resizable [ cursor ] . $on ( { "beforeresize" : { fn : this . _onResizeStart , scope : this } , "resize" : { fn : this . _onResizing , scope : this } , "resizeend" : { fn : this . _onResizeEnd , scope : this } } ) ; } } }
Creates the Resize element with all the resize handle element.
@protected
Creates the Resize element with all the resize handle element .