public/front/js/New Tab_files/newTab.js
/**
   * Correct the position of all pinned sites that might have been moved to
   * different positions after the dragged site has been inserted.
   * @param aSites The array of sites containing the dragged site.
   * @param aCell The drop target cell.
   */
Correct the position of all pinned sites that might have been moved to
different positions after the dragged site has been inserted.
@param aSites The array of sites containing the dragged site.
@param aCell The drop target cell.
Correct the position of all pinned sites that might have been moved to different positions after the dragged site has been inserted . @param aSites The array of sites containing the dragged site . @param aCell The drop target cell .
function DropPreview_repositionPinnedSites(aSites, aCell) {
    let pinnedSites = this._filterPinnedSites(aSites, aCell);
    pinnedSites.forEach(function (aSite) {
      aSites[aSites.indexOf(aSite)] = aSites[aSite.cell.index];
      aSites[aSite.cell.index] = aSite;
    }, this);
    if (this._hasOverflowedPinnedSite(aSites, aCell))
      this._repositionOverflowedPinnedSite(aSites, aCell);
  }
function DropPreview_repositionPinnedSites ( aSites , aCell ) { let pinnedSites = this . _filterPinnedSites ( aSites , aCell ) ; pinnedSites . forEach ( function ( aSite ) { aSites [ aSites . indexOf ( aSite ) ] = aSites [ aSite . cell . index ] ; aSites [ aSite . cell . index ] = aSite ; } , this ) ; if ( this . _hasOverflowedPinnedSite ( aSites , aCell ) ) this . _repositionOverflowedPinnedSite ( aSites , aCell ) ; }
Correct the position of all pinned sites that might have been moved to
 different positions after the dragged site has been inserted.
Correct the position of all pinned sites that might have been moved to different positions after the dragged site has been inserted .
// Collect all pinned sites. // Correct pinned site positions. // There might be a pinned cell that got pushed out of the grid, try to // sneak it in by removing a lower-priority cell.