Closed
Description
Hi guys, I've been experiencing some random adapter reload issues and at first I thought it was just something I'm not doing right. Wondering if you can take a look at this repro. If you scroll down the list a few ways after append is called (buffer = 15), and click on reload, it sometimes does not return the list to the top. I also notice in this repro the first couple times, view port also does not fill up.
https://jsfiddle.net/MartyBolton/wf7o0ded/3/
Here's essentially all I'm doing in my app and repro. Wondering if I'm doing something wrong here. I didn't see any reload examples in demo.
thanks
Marty
html
<li ui-scroll="item in datasource" buffer-size="15" ng-class="{'odd': item.id % 2}" style="height:{{useIrregularHeight ? item.size + 22 : 150}}px;" adapter="feedAdapter.adapter">
// adapter implementation
$scope.feedAdapter = { adapter: { remain: true } };
$scope.reload = function() {
console.log ('reloading');
$scope.feedAdapter.adapter.reload();
}
Metadata
Metadata
Assignees
Labels
No labels