Setup corect scrollOffsets when on beggining of the list#302
Setup corect scrollOffsets when on beggining of the list#302centy wants to merge 3 commits intoletsar:masterfrom
Conversation
This prevents messing up elements that causes holes in view
|
@letsar Are you still supporting this package? |
|
Hi @centy, yes I still maintain this package but I don't have a lot of time at the moment to do it properly. |
|
@letsar Issue appears if you have list of items, with keys. For some reason you want to reorder them, my case was to move any element to the beginning of the list. That action causes issue like this: now move 3 on 1 position Code when rebuilding offsets, calculates right offset starting not from 0. |
|
@letsar Can you merge it or fix it? I am keeping changes on my branch. I would like to back to use stock version of the widget. |
|
I can confirm that this fixes the issue with empty spaces in Masonry grid. Could this be integrated in the public version ? |
When using MasonryGridView with unique keys for each item like below:
and order of items changes then layout has holes mostly on second column. In my case any image can be moved to beginning of the list. So the newly moved image beaks logic that calculates offsets.
That fix prevents holes in image stream to appear