code: function () {
              var fitWidth = this.calculateZoomValue(ZOOM_FIT_WIDTH),
                  fitHeight = this.calculateZoomValue(ZOOM_FIT_HEIGHT);
              return Math.min(fitWidth, fitHeight);
          }
docs: Calculate the numeric value for zoom 'auto' for this layout mode
  @returns {float} The zoom value