-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
images overlap #39
Comments
Hi @ahmadabdolsaheb Thank you for Issues 😃 It is thought that it is caused by the indeterminate size of the image. |
thanks for the fast response, @tsuyoshiwada |
@ahmadabdolsaheb I'm sorry for late response... If you know the size of the image in advance, specifying the image size is the best measure.
However, this will cause the spinner to be displayed until all the images have been read, so the display will be felt late 😢 |
@tsuyoshiwada Thanks for you efford on this project. My problem I have met some problem in the image overlapping when searching photos by a keyword or updating the pager. The images can be displayed after a short time overlapping period, is it any other way to improved the user experience? My usage Here is my usage of react-stack-grid.
My solution (not implement yet) I have tried to add the loading spinner everytime after clicking search button and updating the pager to give react-stack-grid time to tidy the images. But it could be hard to handle the the duration time of spinner. Would you minding adding a new props which is the callback function called by imagesloaded, like imagesloaded example. Updated I just tested the app in github page (click the second button in the header will see the setting modal), and it works very well. Would it be my computor performance problem when in local development? |
the images overlap when the page is visited for the first time. upon refresh, the images load correctly.
https://pinter.herokuapp.com/
there is how react-stack-grid is used:
https://github.com/moT01/pinterest/blob/master/client/src/components/main/MainPage.js
The text was updated successfully, but these errors were encountered: