components/docked-panel-ng/docked-panel-ng.js
function checkPanelPosition() {
        const currentPanelRect = panel.getBoundingClientRect();

        if (currentPanelRect.top + currentPanelRect.height > getScrollContainerHeight() &&
          !isDocked) {
          dock();
        } else if (
          isDocked &&
          currentPanelRect.top + currentPanelRect.height +
            getScrollContainerScrollTop() >= getInitialUndockedPosition() + TOGGLE_GAP
        ) {
          undock();
        }
      }
function checkPanelPosition() {
        const currentPanelRect = panel.getBoundingClientRect();

        if (currentPanelRect.top + currentPanelRect.height > getScrollContainerHeight() &&
          !isDocked) {
          dock();
        } else if (
          isDocked &&
          currentPanelRect.top + currentPanelRect.height +
            getScrollContainerScrollTop() >= getInitialUndockedPosition() + TOGGLE_GAP
        ) {
          undock();
        }
      }
function checkPanelPosition ( ) { const currentPanelRect = panel . getBoundingClientRect ( ) ; if ( currentPanelRect . top + currentPanelRect . height > getScrollContainerHeight ( ) && ! isDocked ) { dock ( ) ; } else if ( isDocked && currentPanelRect . top + currentPanelRect . height + getScrollContainerScrollTop ( ) >= getInitialUndockedPosition ( ) + TOGGLE_GAP ) { undock ( ) ; } }
Check panel position
Check panel position