angular-vs-repeat
angular-vs-repeat copied to clipboard
Scroll issue when use nested ng-repeat.
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 : )
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
@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?