etsy / AndroidStaggeredGrid

An Android staggered grid view which supports multiple columns with rows of varying sizes.
https://github.com/etsy/AndroidStaggeredGrid
4.76k stars 1.13k forks source link

The first Items get unexpected top margin #87

Open nonla opened 10 years ago

nonla commented 10 years ago

Hi denizmveli,

Thank you for your interesting library, but I'm having a small trouble with this. I'm not sure if it's a bug or not, thought. Using your StaggerGridView,somtimes, the first items get unexpected margin. Not all the time the problem appears, just when I scroll down, up and down up.... It occurs (as I said, not all the time, but sometimes). it looks like this ( not too ugly but a bit annoying). esty_stagg_img_0

I hope to see your answer soon. Thank you. :)

akshaydashrath commented 10 years ago

Have the same issue as well

nonla commented 10 years ago

@akshaydashrath : I noticed that, when the size of the image is unknown ( loading image from internet for example), it's easy to reproduce the problem. And for a list of known images (the width and height), it works well.

akshaydashrath commented 10 years ago

I assumed as much, adding a margin seems to help

nonla commented 10 years ago

@akshaydashrath : How do you know the correct margin to add?. :)