docs: function (cfg) {
              var size = {}, totalHeight, initDimension, skinObj = this._skinObj;
  
              this._panelBorderH = this._calculateBorderSize(skinObj.panelBorder, "H");
              this._panelBorderV = this._calculateBorderSize(skinObj.panelBorder, "V");
  
              this._separatorBorderH = this._calculateBorderSize(skinObj.separatorBorder, "H");
              this._separatorBorderV = this._calculateBorderSize(skinObj.separatorBorder, "V");
  
              if (cfg.border) {
                  this._containerBorderH = (skinObj.borderWidth || skinObj.borderWidth === 0)
                          ? skinObj.borderWidth * 2
                          : this._skinObj.borderTopWidth + this._skinObj.borderBottomWidth;
                  this._containerBorderV = (skinObj.borderWidth || skinObj.borderWidth === 0)
                          ? skinObj.borderWidth * 2
                          : this._skinObj.borderLeftWidth + this._skinObj.borderRightWidth;
              }
  
              this._height = cfg.height - skinObj.separatorHeight - this._separatorBorderH - this._panelBorderH * 2
                      - this._containerBorderH;
              this._width = cfg.width - skinObj.separatorWidth - this._separatorBorderV - this._panelBorderV * 2
                      - this._containerBorderV;
  
              if (this._height < 0) {
                  this._height = 0;
              }
              if (this._width < 0) {
                  this._width = 0;
              }
  
              if (cfg.size1 < 0) {
                  cfg.size1 = 0;
              }
              if (cfg.size2 < 0) {
                  cfg.size2 = 0;
              }
  
              initDimension = this._orientation ? this._height : this._width;
              if (cfg.size1 == null && cfg.size2 == null) {
                  cfg.size1 = Math.floor(initDimension / 2);
                  cfg.size2 = initDimension - cfg.size1;
              } else if (cfg.size1 == null && cfg.size2 != null) {
                  cfg.size1 = initDimension - cfg.size2;
              } else if (cfg.size1 != null && cfg.size2 == null) {
                  cfg.size2 = initDimension - cfg.size1;
              }
  
              totalHeight = cfg.size1 + cfg.size2;
              if (initDimension == totalHeight) {
                  size.size1 = cfg.size1;
                  size.size2 = cfg.size2;
              } else {
                  if (cfg.adapt == "size1") {
                      size.size2 = cfg.size2;
                      if (size.size2 > initDimension) {
                          size.size2 = initDimension;
                      }
                      size.size1 = initDimension - size.size2;
                  } else if (cfg.adapt == "size2") {
                      size.size1 = cfg.size1;
                      if (size.size1 > initDimension) {
                          size.size1 = initDimension;
                      }
                      size.size2 = initDimension - size.size1;
                  } else {
                      if (totalHeight !== 0) {
                          size.size1 = Math.floor((initDimension * cfg.size1) / totalHeight);
                          size.size2 = initDimension - size.size1;
                      } else {
                          size.size1 = Math.floor(initDimension / 2);
                          size.size2 = initDimension - cfg.size1;
                      }
  
                  }
              }
              return size;
          }