-
Notifications
You must be signed in to change notification settings - Fork 17
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
DOESNT RE-RENDER - If children sizes change #74
Comments
Since the key is an index, it is difficult to detect size changes if the item has the same key. Try using the renderItems method every time you search it. grid.renderItems({ useOrgResize: true }); |
Changing key to image url worked, it now resizes automatically. There's another problem - before loading all images, it quickly flashes them in their real size before actually fitting into the grid. You can see it happening in the first 3 seconds of the video on the first search. Is that solvable? I tried with other libraries but don't see the same issue. |
It can't be helped because there is time for the image to load.
|
@daybrush so how do other packages do it? obviously must be something the way you implemented the grid. Thanks anyways! |
MasonryGrid, JustifiedGrid FrameGrid, ... works the same in all Grids. |
Description
Justified grid doesn't re-render items if their sizes change.
Steps to check or reproduce
I fetch multiple images but the initial grid stays, how do I re-render the grid to dynamically resize every item if they change?
My code:
Here's the result:
aaaa.mov
The text was updated successfully, but these errors were encountered: