code: function () {
          this.top = document.body.scrollTop;
          this.left = document.body.scrollLeft;
          this.bottom = this.top + docElement.clientHeight;
          this.right = this.left + docElement.clientWidth;
      }
docs: /*
  Update viewport measurements