Comments (3)
If you're loading a page with images I suggest using something like https://imagesloaded.desandro.com and calling FlexMasonry.refreshAll();
once all of the images have loaded.
from flexmasonry.
Is that because you're concerned that the images should be loaded first? If that's the case then I should just be able to do:
window.onload = function () {
FlexMasonry.refreshAll();
};
But that still doesn't fix the problem. I've even tried adding a timer delay before refreshing, and it still doesn't do anything different. I think you should set up a working demo that's based on the basic instructions, so users can play around with it.
from flexmasonry.
@impressivewebs what about containing the images to the column width ?
img {
max-width: 100%;
height: auto;
}
I did it on that pen and got some mixed results. When resizing the window it worked fine. Sometimes on load I'd get some gaps between the images. I think this is related to the PR which is open (#4) so adding
.grid {
align-content: flex-start;
}
would get rid of those gaps I believe.
from flexmasonry.
Related Issues (15)
- refresh method HOT 1
- Typescript types HOT 1
- Only one instance of Flexmasonry working HOT 1
- Multiple Column Spanning
- Pinterest re-order? HOT 1
- When resizing there's a flickering that happens due to where the columns are being placed
- gap function doesn't work ? HOT 4
- issue with showing
- Item spacing can break HOT 2
- Tall items can break the flow HOT 5
- using import not working HOT 3
- gap parameter? HOT 15
- One-column-layout is not working
- Are equal height rows supported? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flexmasonry.