angular-ui/ui-grid

concat new data to $scope.data current top jumps down 7 rows after dataLoaded.

Open

#4.047 geöffnet am 24. Juli 2015

Auf GitHub ansehen
 (6 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (2.496 Forks)batch import
grid-infinite-scrollhelp wanted

Repository-Metriken

Stars
 (5.395 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

$scope.gridApi.infiniteScroll.saveScrollPercentage(); $scope.gridOptions.data = $scope.gridOptions.data.concat(data); $scope.gridApi.infiniteScroll.dataLoaded();

After this code is used the grid loads the new data and keeps the position for the most part but actually jumps the top row down about 7 rows. Is this a bug? Or am I doing something wrong? Thanks.

Contributor Guide