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

it works only very first time and then it loses position #179

Open
dhboys opened this issue Jan 18, 2023 · 1 comment
Open

it works only very first time and then it loses position #179

dhboys opened this issue Jan 18, 2023 · 1 comment

Comments

@dhboys
Copy link

dhboys commented Jan 18, 2023

Hello, I'm frontEnd developer in South Korea.
I've found lib to make layout like 'Pinterest' and I've got this lib.
I mean, thanks to make this lib.

anyway, I've got little problem using this lib.
it works very first time but when some states change it lost it's position.

for example,

  1. when i come in the website
    image

  2. change the states (category is changed)
    image

when it work right, Masonry tag has the style={{ position: relative; }}, but when it not works, it lost style={{ position: relative; }}
it could be the cause ?
thank you for reading, I look forward to reply, thank you.

@dhboys
Copy link
Author

dhboys commented Jan 18, 2023

I solve the problem.
just put the stlye={{ position: 'relative'; }} to Masonry's parent tag.

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