angular-ui/ui-grid

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

Open

#4047 aperta il 24 lug 2015

Vedi su GitHub
 (6 commenti) (0 reazioni) (0 assegnatari)JavaScript (2496 fork)batch import
grid-infinite-scrollhelp wanted

Metriche repository

Star
 (5395 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor