kandi X-RAY | photoswipe-masonry Summary
kandi X-RAY | photoswipe-masonry Summary
photoswipe-masonry
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of photoswipe-masonry
photoswipe-masonry Key Features
photoswipe-masonry Examples and Code Snippets
Community Discussions
Trending Discussions on photoswipe-masonry
QUESTION
I'm using a masonry image gallery plugin for a Wordpress site.
Images have started appearing on top of each other suddenly. I don't think it is to do with the plugin itself, as it was working fine before. But I had to change some of the HTML/CSS code and perhaps it is something to do with that. I can't reconstruct it though.
Of course the content area should expand with the gallery. It happens on several pages like this. I pull the images via custom fields, it's just a gallery.
Where should I go looking for the source of the error?
...ANSWER
Answered 2018-Apr-09 at 16:33It's because the Masonry grid is being constructed before the images have all loaded. You'll need to also call the imagesloaded library.
You haven't posted the JS which is instantiating the masonry, so I can't give you an exact example, but here's the link to the Masonry site about it: https://masonry.desandro.com/layout.html#imagesloaded
I'd use the 2nd example:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install photoswipe-masonry
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page