src/aria/widgets/container/Div.js
function (cfg) {
            var hasChanged = false, prefName, newVal;
            var prefs = ['maxWidth', 'maxHeight', 'minWidth', 'width', 'height'];

            for (var i = 0, len = prefs.length; i < len; i++) {
                prefName = prefs[i];
                newVal = cfg[prefName];
                if (newVal && newVal != this._cfg[prefName]) {
                    this._cfg[prefName] = newVal;
                    hasChanged = true;
                }
            }

            if (cfg.maximized !== this._cfg.maximized) {
                this._cfg.maximized = cfg.maximized;
                hasChanged = true;
            }

            if (cfg.maximized) {
                this._cfg.widthMaximized = cfg.widthMaximized;
                this._cfg.heightMaximized = cfg.heightMaximized;
                hasChanged = true;
            } else {
                this._cfg.widthMaximized = null;
                this._cfg.heightMaximized = null;
            }

            if (hasChanged) {
                this.$Container._updateSize.call(this);
            }
        }
function (cfg) {
            var hasChanged = false, prefName, newVal;
            var prefs = ['maxWidth', 'maxHeight', 'minWidth', 'width', 'height'];

            for (var i = 0, len = prefs.length; i < len; i++) {
                prefName = prefs[i];
                newVal = cfg[prefName];
                if (newVal && newVal != this._cfg[prefName]) {
                    this._cfg[prefName] = newVal;
                    hasChanged = true;
                }
            }

            if (cfg.maximized !== this._cfg.maximized) {
                this._cfg.maximized = cfg.maximized;
                hasChanged = true;
            }

            if (cfg.maximized) {
                this._cfg.widthMaximized = cfg.widthMaximized;
                this._cfg.heightMaximized = cfg.heightMaximized;
                hasChanged = true;
            } else {
                this._cfg.widthMaximized = null;
                this._cfg.heightMaximized = null;
            }

            if (hasChanged) {
                this.$Container._updateSize.call(this);
            }
        }
function ( cfg ) { var hasChanged = false , prefName , newVal ; var prefs = [ 'maxWidth' , 'maxHeight' , 'minWidth' , 'width' , 'height' ] ; for ( var i = 0 , len = prefs . length ; i < len ; i ++ ) { prefName = prefs [ i ] ; newVal = cfg [ prefName ] ; if ( newVal && newVal != this . _cfg [ prefName ] ) { this . _cfg [ prefName ] = newVal ; hasChanged = true ; } } if ( cfg . maximized !== this . _cfg . maximized ) { this . _cfg . maximized = cfg . maximized ; hasChanged = true ; } if ( cfg . maximized ) { this . _cfg . widthMaximized = cfg . widthMaximized ; this . _cfg . heightMaximized = cfg . heightMaximized ; hasChanged = true ; } else { this . _cfg . widthMaximized = null ; this . _cfg . heightMaximized = null ; } if ( hasChanged ) { this . $Container . _updateSize . call ( this ) ; } }
Change the width, height, max width and max height of the configuration, then update the container size
@param {aria.widgets.CfgBeans:DivCfg} cfg the widget configuration (only width, height, maxWidth, maxHeight,
maximized will be used)
Change the width height max width and max height of the configuration then update the container size