-
Notifications
You must be signed in to change notification settings - Fork 91
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
Initial layout shows only one column #341
Comments
I want to know how you use infinitegrid. Any test or sample code? |
Thank you! In fact another page with similar code structure worked great; the only difference is that, It could be the cause, but I'm not sure without any experiment. |
it's not possible. But if something has changed before the image is loaded, would you like to call |
Sry if it's already documented somewhere, but what is the timing and where to call From the document, I only found this example. How could I do this in React? I tried I also tried So may be |
It is not right to call in onLayoutComplete. Once that situation is not common. Inside the component, there is code waiting for the image to load. Was there no image when it was first loaded? It works as if it weren't. When all images are loaded, layout should be called only once. |
But I managed to avoid this problem by unmount the grid every time swipeable-views goes to other panels. Now it works perfectly, though reload of images happening every time I switch panel back. (Maybe time to do some cache with After the project I'm currently working on is finished, I'll try to make a codesandbox example to see if I can reproduce this. |
@adsee42 Hi, could you show me the code to unmount the grid? I have the same problems. |
@quyctd |
@adsee42 Thank you for the sharing. I realized that my issue happens because of the width of the |
This issue/PR has been automatically marked as stale because it has not had any update (including commits, comments, labels, milestones, etc) for 30 days. It will be closed automatically if no further update occurs in 7 day. Thank you for your contributions! 한글이 이슈/PR은 commits, comments, labels, milestones 등 30일간 활동이 없어 자동으로 stale 상태로 전환되었습니다. 이후 7일간 활동이 없다면 자동으로 닫힐 예정입니다. 프로젝트 개선에 기여해주셔서 감사합니다. |
Description
I'm using
react-infinitegrid
withmaterial-ui
.When the page is opened,
GridLayout
shows only one row with initial images stacking together (see images below)After changing the window size by dragging the browser frame, the images show as expected.
Any idea why is this happening?
The text was updated successfully, but these errors were encountered: