src/aria/widgets/container/Dialog.js
function (event) {
            var containerSize = this._popupContainer.getClientSize();
            if (!this._popup.isOpen || containerSize.width <= 0 || containerSize.height <= 0) {
                // do nothing if the container is not visible
                // or if the popup was manually hidden from external code
                return;
            }

            var domElt = this._domElt;
            var maximized = this._cfg.maximized;

            if (domElt) {
                // Remove width and height, they will be recalculated later, to have the content size well calculated
                domElt.style.width = "";
                domElt.style.height = "";

                // constrain dialog to containerSize
                this._updateDivSize(containerSize);
                this._updateContainerSize();
            }

            if (maximized) {
                this._setMaximizedHeightAndWidth(containerSize);
            }
        }
function (event) {
            var containerSize = this._popupContainer.getClientSize();
            if (!this._popup.isOpen || containerSize.width <= 0 || containerSize.height <= 0) {
                // do nothing if the container is not visible
                // or if the popup was manually hidden from external code
                return;
            }

            var domElt = this._domElt;
            var maximized = this._cfg.maximized;

            if (domElt) {
                // Remove width and height, they will be recalculated later, to have the content size well calculated
                domElt.style.width = "";
                domElt.style.height = "";

                // constrain dialog to containerSize
                this._updateDivSize(containerSize);
                this._updateContainerSize();
            }

            if (maximized) {
                this._setMaximizedHeightAndWidth(containerSize);
            }
        }
function ( event ) { var containerSize = this . _popupContainer . getClientSize ( ) ; if ( ! this . _popup . isOpen || containerSize . width <= 0 || containerSize . height <= 0 ) { // do nothing if the container is not visible // or if the popup was manually hidden from external code return ; } var domElt = this . _domElt ; var maximized = this . _cfg . maximized ; if ( domElt ) { // Remove width and height, they will be recalculated later, to have the content size well calculated domElt . style . width = "" ; domElt . style . height = "" ; // constrain dialog to containerSize this . _updateDivSize ( containerSize ) ; this . _updateContainerSize ( ) ; } if ( maximized ) { this . _setMaximizedHeightAndWidth ( containerSize ) ; } }
Manage the viewport resize event
@param {aria.DomEvent} event
@protected
Manage the viewport resize event