Description
We're having an issue with ui-scroll used with asynchronous calls. While scrolling some way to the bottom, then going back to the top and so on - there's always some whitespace at the top - sometimes really small, sometimes super huge. Sometimes it also appears on the bottom, but that's mostly noticeable with smaller datasets.
There's also a side issue with it (that may be related) in a console where we're logging descriptor state - notice how on first load console spits out descriptor.index
with a value of 1
, then 11
and then -9
- why is that negative? Why not 21?
Plunker with simplified test case below - try scrolling a bit to the bottom, then back to the top, then some more / less to the bottom, then back to top etc. There will be randomly sized white space up top most of the times (like this: http://i.imgur.com/8BXZFOD.png). We're using some placeholder API in there, feel free to fiddle with that - any help would be appreciated, as we're completely stuck with that for some time now.
https://plnkr.co/edit/GCm3a1a9iZOqkKrSA4sb?p=preview
We're using 1.5.0 ui-scroll in the example (although it's exactly the same with 1.4.x and 1.3.x versions)
Thanks in advance!