docs: function (containerSize) {
              var cfg = this._cfg;
              var math = ariaUtilsMath;
  
              var maxHeight, maxWidth;
              if (this._cfg.maximized) {
                  maxHeight = containerSize.height + this._shadows.top + this._shadows.bottom;
                  maxWidth = containerSize.width + this._shadows.left + this._shadows.right;
              } else {
                  maxHeight = math.min(this._cfg.maxHeight, containerSize.height);
                  maxWidth = math.min(this._cfg.maxWidth, containerSize.width);
              }
  
              var titleBarDomElt = this._titleBarDomElt;
              var titleDomElt = this._titleDomElt;
  
              var isIE7 = ariaCoreBrowser.isIE7;
              if (isIE7) {
                  // without this, IE 7 gives wrong inner sizes
                  titleDomElt.style.overflow = "visible";
              }
  
              titleDomElt.style.width = "";
              var titleWidth = titleDomElt.offsetWidth;
              var titleBarPaddings = ariaUtilsDom.getStylePx(titleBarDomElt, "paddingLeft", 0) + ariaUtilsDom.getStylePx(titleBarDomElt, "paddingRight",0);
              var childNodes = titleBarDomElt.childNodes;
              var iconsWidth = 0;
              for (var i = 0, ii = childNodes.length; i < ii; i++) {
                  var node = childNodes[i];
                  iconsWidth += node !== titleDomElt ? node.offsetWidth : 0;
              }
  
              // First manage the width of the modal depending on the title bar and the max width
              var shadows = this._shadows;
              var minWidth = ariaUtilsMath.max(cfg.width, cfg.minWidth);
              if (cfg.width == -1) {
                  minWidth = ariaUtilsMath.max(titleBarPaddings + titleWidth + iconsWidth + shadows.left + shadows.right, minWidth);
              }
  
              // if maximized == true, then height|widthMaximized will be used; otherwise normal width and height
              this._div.updateSize({
                  maxHeight : maxHeight,
                  maxWidth : maxWidth,
                  minWidth : minWidth,
                  height : cfg.height,
                  width : cfg.width,
                  heightMaximized : cfg.heightMaximized,
                  widthMaximized : cfg.widthMaximized,
                  maximized : cfg.maximized
              });
  
              // The manage the title length to manage the text-overflow
              var titleBarInnerWidth = titleBarDomElt.clientWidth - titleBarPaddings;
              var titlePaddings = ariaUtilsDom.getStylePx(titleDomElt, "paddingLeft", 0) + ariaUtilsDom.getStylePx(titleDomElt, "paddingRight", 0);
              titleDomElt.style.width = ariaUtilsMath.max(titleBarInnerWidth - titlePaddings - iconsWidth - shadows.left - shadows.right - 1, 0) + "px";
  
              if (isIE7) {
                  // Back to overflow hidden mode
                  titleDomElt.style.overflow = "hidden";
              }
  
          }