docs: function (obj) {
              var overflowX = null, overflowY = null;
              if (this.innerWidth > -1) {
                  obj.width = this.innerWidth + "px";
                  if (obj.style != null) {
                      obj.style += "width:" + obj.width + ";";
                  }
              } else {
                  obj.width = "";
              }
              if (this.innerWidth > -1 || this._cfg.fullWidth) {
                  overflowX = this._cfg.scrollBarX ? "Auto" : "Hidden";
                  if (this._cfg.printOptions == "adaptX" || this._cfg.printOptions == "adaptXY") {
                      obj.className += " xPrintAdaptX";
                  }
              }
              if (this.innerHeight > -1) {
                  var height = obj.height = this.innerHeight + "px";
                  if (obj.style != null) {
                      obj.style += "height:" + height + ";";
                  }
                  overflowY = this._cfg.scrollBarY ? "Auto" : "Hidden";
                  if (this._cfg.printOptions == "adaptY" || this._cfg.printOptions == "adaptXY") {
                      obj.className += " xPrintAdaptY";
                  }
              } else {
                  obj.height = "";
              }
              var overflowValue = overflowX || overflowY;
              if (overflowValue) {
                  // Specifying only overflow-x or only overflow-y makes Firefox behave strangely
                  // (especially: it makes the corresponding element focusable)
                  // Here we make sure both values are always specified:
                  if (overflowX === overflowY || !overflowX || !overflowY) {
                      // when both values are the same or one is missing, use the value for both X and Y without distinction:
                      obj.className += " xOverflow" + overflowValue;
                  } else {
                      // When both values are specified, use them as they are:
                      obj.className += " xOverflowX" + overflowX + " xOverflowY" + overflowY;
                  }
              }
          }