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.

贡献者指南