Skip to content
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

How to update grid after hiding some divs? #100

Open
Nickonimus opened this issue Nov 18, 2023 · 3 comments
Open

How to update grid after hiding some divs? #100

Nickonimus opened this issue Nov 18, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@Nickonimus
Copy link

Nickonimus commented Nov 18, 2023

Hi
I can't make grid update after hiding some elements (divs.display = none) , how to deal with it?

@Nickonimus Nickonimus changed the title How to change gride size from buttons? How to update grid after changes? Nov 20, 2023
@Nickonimus Nickonimus changed the title How to update grid after changes? How to update grid after hiding some divs? Nov 21, 2023
@Jackky90
Copy link

Hi! Try syncElements() method on grid, like grid.syncElements()

@Nickonimus
Copy link
Author

Nickonimus commented Nov 22, 2023

Grid updates with grid.syncElements() but only after .remove() of items, so can't figure out how to turn grid back after search.

@Nickonimus
Copy link
Author

@malangfox
Hi, seems like this problem has presence only with JustifiedGrid, tested on MasonryGrid and it reupdates immediately. Can you please check?

@daybrush daybrush added the bug Something isn't working label Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants