docs: function () {
              var domReference = this.reference;
              if (domReference && this.isOpen) {
  
                  var position = this.popupContainer.calculatePosition(domReference);
                  var size = {
                      width: domReference.offsetWidth,
                      height: domReference.offsetHeight
                  };
                  var referenceIsInContainer = this.popupContainer.isInside(position, size, this.domElement);
  
                  if (referenceIsInContainer) {
                      this.referencePosition = position;
                      this.referenceSize = size;
                      this.refresh();
                      if (this.domElement && this.domElement.style.visibility === "hidden") {
                          this.domElement.style.visibility = "visible";
                      }
                  } else {
                      this.domElement.style.visibility = "hidden";
                  }
              }
          }