-
Notifications
You must be signed in to change notification settings - Fork 140
Items stack on top of each other on the initial load until I resize #50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You need to set place the image in a div whose height is equal to the height of the image. That way, the grid item will always be the correct height even if the image loads slowly. |
Sorry for necrobumping, I'm using the library for a dynamic number of images, but I'm facing the same issue as OP, even after setting the height of the div the same as the image it contains.
thumb_height() is a method that returns the image height in px from the backend I'm initializing the grid like this:
but images appear stacked until I resize the window and the grid starts working. Am I missing something? |
This needs more investigation |
I ran into this and simply worked around it by having a debouncing listener that calls
|
Items stack on top of each other on the initial load until I resize
The text was updated successfully, but these errors were encountered: