Skip to content

Commit

Permalink
Merge pull request #94 from lmcnichols/working
Browse files Browse the repository at this point in the history
Have the DataGrid syncViewport when receiving a DataModel.ChangedArgs signal of type "rows-moved" or "columns-moved"
  • Loading branch information
Steven Silvester authored Jul 21, 2020
2 parents a383a5b + ce391e1 commit 8a4c821
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/datagrid/src/datagrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2682,8 +2682,8 @@ class DataGrid extends Widget {
this._repaintRegion('corner-header', r1, 0, r2, Infinity);
}

// Schedule a repaint of the overlay.
this._repaintOverlay();
// Sync the viewport.
this._syncViewport();
}

/**
Expand Down Expand Up @@ -2740,8 +2740,8 @@ class DataGrid extends Widget {
this._repaintRegion('corner-header', 0, c1, Infinity, c2);
}

// Schedule a repaint of the overlay.
this._repaintOverlay();
// Sync the viewport.
this._syncViewport();
}

/**
Expand Down

0 comments on commit 8a4c821

Please sign in to comment.