code: function () {
          var self = this, statusbar = self.statusbar, layoutRect, width, x, needsRecalc;
  
          if (self._fullscreen) {
            self.layoutRect(DomUtils.getWindowSize());
            self.layoutRect().contentH = self.layoutRect().innerH;
          }
  
          self._super();
  
          layoutRect = self.layoutRect();
  
          // Resize window based on title width
          if (self.settings.title && !self._fullscreen) {
            width = layoutRect.headerW;
            if (width > layoutRect.w) {
              x = layoutRect.x - Math.max(0, width / 2);
              self.layoutRect({ w: width, x: x });
              needsRecalc = true;
            }
          }
  
          // Resize window based on statusbar width
          if (statusbar) {
            statusbar.layoutRect({ w: self.layoutRect().innerW }).recalc();
  
            width = statusbar.layoutRect().minW + layoutRect.deltaW;
            if (width > layoutRect.w) {
              x = layoutRect.x - Math.max(0, width - layoutRect.w);
              self.layoutRect({ w: width, x: x });
              needsRecalc = true;
            }
          }
  
          // Recalc body and disable auto resize
          if (needsRecalc) {
            self.recalc();
          }
        }
docs: Recalculates the positions of the controls in the current container.
  This is invoked by the reflow method and shouldn't be called directly.
  
  @method recalc