desandro / masonry

:love_hotel: Cascading grid layout plugin
https://masonry.desandro.com
16.38k stars 2.11k forks source link

Masonry + Infinite scroll: masonry error. #1044

Closed ieraora closed 6 years ago

ieraora commented 6 years ago

Hi, If I launch this https://codepen.io/ieraora/pen/xWomYj for first time (debug mode, for example), masonry don't work fine. Why? Thanks screenshot 2018-04-16 08 54 24

amirouche-g commented 6 years ago

Hello, I tested and it's working, maybe because of your browser (delete the cache)

ieraora commented 6 years ago

Isn't a problem of cache. I tested it also with an anonymous window

ieraora commented 6 years ago

If I add gutter, I haven't problem (https://codepen.io/ieraora/pen/rdXMjy). But I need gutter= 0.

amirouche-g commented 6 years ago

capture

ieraora commented 6 years ago

If I assign gutter=0, in preview of codepen is correct, but if you CHANGE VIEW in DEBUG MODE, this is my view screenshot 2018-04-16 11 12 03

desandro commented 6 years ago

Could this be caused by the scroll bar? Try adding html { overflow-y: scroll; } to your CSS.

ieraora commented 6 years ago

now it's OK. Thanks