code: function _setViewSize() {
          if (hasScrollContainer) {
              const width = viewEl.offsetWidth;
              const height = viewEl.offsetHeight;
              return view.setSize(width, height);
          }
  
          const html = document.documentElement;
          const width = window.innerWidth || html.clientWidth;
          const height = window.innerHeight || html.clientHeight;
  
          return view.setSize(width, height);
      }
docs: Cache the window height.