<script src="https://code.angularjs.org/1.3.14/angular.js "></script>
<div ng-controller="MainController">
<h2>
Irregular list item height is {{useIrregularHeight ? 'enabled' : 'disabled'}}
<a class="toggler" ng-click="useIrregularHeight = !useIrregularHeight;">[toggle]</a>
</h2> <span>Example get: function(descriptor, success) with items ranging from 50-300 descending to simulate a feed data source.
This repro shows the new padding branch <a href="https://github.com/angular-ui/ui-scroll/blob/paddings/src/ui-scroll.js">link</a> that uses cache of item heights and appears to completely address the problem from here <a href="https://jsfiddle.net/MartyBolton/s38zdu8c/6/">problem</a>
<ul ui-scroll-viewport class="list">
<li ui-scroll="item in datasource" buffer-size="15" ng-class="{'odd': item.id % 2}" style="height:{{useIrregularHeight ? item.size + 22 : 50}}px;">
<span>{{item.text}}</span>
</li>
</ul>
</div>