code: function dock() {
          onBeforeDock();
  
          panel.classList.add(DOCKED_CSS_CLASS_NAME);
          if (dockedPanelClass) {
            panel.classList.add(dockedPanelClass);
          }
          isDocked = true;
        }
docs: Docks the panel to the bottom of the page