updateViewportSize_(size) {
    const view = this.getView();
    if (view) {
      view.setViewportSize(size);
    }
  }
Recomputes the viewport size and save it on the view object (if any)
@param {import("./size.js").Size|undefined} size The size.
@private