docs: public void setAutoHideOnResize(boolean autoHideOnResize) {
          if (autoHideOnResize) {
              autoHideViewport = ViewPort.when(getClosingBoundary()).then(param1 -> hide());
          } else {
              if (autoHideViewport != null) {
                  autoHideViewport.destroy();
                  autoHideViewport = null;
              }
          }
      }