desandro / masonry

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

Overlapping Images in height by using responsive picture tag #1181

Open fischhase opened 1 year ago

fischhase commented 1 year ago

Hallo desandro, many thanks for your masonry plugin. I used it in the past without any problems, but now I had an issue with a mordern responsive site. I used the picture/source-Tag with different images files for different viewportsizes. Unfortunatly masonry was not reliable in calculating the height so the images were overlapping. After reload the masonry in viewport was ok, but on a long page further down the issue still persisted. Maybe it could also be a problem with imageloaded(). I don't know, if this can be fixed, but I recommend to note it in the doucmentation.