angular-ui/ui-grid

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

Open

#4.047 aberto em 24 de jul. de 2015

Ver no GitHub
 (6 comments) (0 reactions) (0 assignees)JavaScript (2.496 forks)batch import
grid-infinite-scrollhelp wanted

Métricas do repositório

Stars
 (5.395 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

$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.

Guia do colaborador