We have a mansony gallery display bug. The thumbnails are cramped. I noticed that when viewing the page with admin-bar or if the window is resized, like opening the google chrome console, the thumbnails are okay.
So I noticed that the thumbnails are being rendered okay when the window is resized. For now, I added this hack:
<script>
jQuery(function($) {
if($('.page-id-556').size() > 0) {
window.setTimeout(function() {$(window).trigger('resize');}, 500)
}
})
</script>
Hi,
Did you need further help on this topic?
Best regards,
Jordan Shannon
I was wondering if the same issue had reported before and if there’s a better fix?
Hi,
Thank you for the update.
Yes, this has been reported before. It’s a bug in the “isotope” script. It calculates the items’ position immediately without waiting for the images to fully load. Your solution is almost the same as the one we usually recommend.
// https://kriesi.at/support/topic/issue-with-loading-large-masonry-galleries/#post-1116008
You can also try to optimize the images, decrease their size or adjust the number of items in the masonry element.
Best regards,
Ismael