angular-vs-repeat icon indicating copy to clipboard operation
angular-vs-repeat copied to clipboard

Scroll issue when use nested ng-repeat.

Open xuyukuan opened this issue 7 years ago • 2 comments

I've created a jsfiddle to show this issue, I use Chrome version 56.0.2924.87 on my macbook pro. The problem is when I finish scroll the fist list and begin the second list scroll, It can not scroll down.

Please refer the link: http://jsfiddle.net/yukuan/jg74yys4/2/

BTW, I also do a simple fix with the issue:

$scope.startIndex = $$options.latch ? _minStartIndex : __startIndex;  
$scope.endIndex = $$options.latch ? _maxEndIndex : __endIndex;  
//add this line in updateInnerCollection method  
if ($scope.startIndex > $scope.endIndex) return false;

Hope this issue can be fixed ASAP : )

xuyukuan avatar Mar 17 '17 06:03 xuyukuan

I had this same issue yesterday. I fixed it by making the smaller of my two repeats just a regular ng-repeat instead of using vs-repeat for both. I was getting all kinds of craziness with a nested vs-repeat

tmcintire avatar Aug 09 '17 20:08 tmcintire

@xuyukuan when I tried your above fix for my nested ng-repeats, it shows blank rows now instead of getting stuck. Did you add any other triggers or sizing to get the rest to show up?

liu351 avatar Feb 23 '18 02:02 liu351