<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. Toggle above to show scrolling is not smooth and can jump around based on irregular differences. </span>
<ul ui-scroll-viewport class="list">
<li ui-scroll="item in datasource" buffer-size="5" ng-class="{'odd': item.id % 2}" style="height:{{useIrregularHeight ? item.size + 22 : 50}}px;">
<span>{{item.text}}</span>
</li>
</ul>
</div>