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 call pckry.layout() from child component #15

Open
boonier opened this issue Jul 19, 2017 · 1 comment
Open

How to call pckry.layout() from child component #15

boonier opened this issue Jul 19, 2017 · 1 comment

Comments

@boonier
Copy link

boonier commented Jul 19, 2017

Hi, this might be an implementation issue on my side, but I've a use-case where I need child components to explicitly set their height when their dimensions change, on a debounced resize event for example.

How to I call the layout() method to force re-arrange in an instance of a Packery component?

@boonier
Copy link
Author

boonier commented Jul 20, 2017

Nevermind I remembered about refs and seems to be working. Calling the performLayout() method after a debounced resize event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant