angular-ui/ui-grid

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

已關閉

#4,047 建立於 2015年7月24日

 (6 則留言) (0 個反應) (0 位負責人)JavaScript (2,496 個分叉)batch import
grid-infinite-scrollhelp wanted

倉庫指標

星標
 (5,395 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南