hilongjw / vue-recyclerview

Mastering Large Lists with the vue-recyclerview
https://hilongjw.github.io/vue-recyclerview/
MIT License
1.45k stars 121 forks source link

Enhancement: Tombstone height defines how many elements get set in DOM #11

Closed hazzo closed 7 years ago

hazzo commented 7 years ago

Hi, one question. Why when the tombstone is for example 1px I get more nodes in de the DOM and when it's higher I get less?

Although, if for example I set a tombstone with a height of more pixels than the chat messages the chunks of messages that I get are more separated from each other. The transform position its really offsetted. That did not happened on your chat demo (that actually now is not working 😛).

Thanks again!

hilongjw commented 7 years ago

RecyclerView will get the height of the tombstone, and predict and fill the tombstone according to the sliding distance. In my demo 's animation is working.

hazzo commented 7 years ago

Hmmm there is a way to avoid that distance between chunks? Even if means sacrificing the tombstone. The only way I could remove that it was setting the tombstone to super small height. In that way the incoming items won't have that big separation between each. But the tombstones when they appear are extremely close.

screenshot_20170604-194058 2

hilongjw commented 7 years ago

@hazzo This is a problem, I'll try to solve it later.

hilongjw commented 7 years ago

@hazzo fixed at 0.3.3

hazzo commented 7 years ago

Great! Saw it genius!