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

binds are creating an iframe limiting per column styling. #27

Open
Farro178 opened this issue Sep 25, 2023 · 0 comments
Open

binds are creating an iframe limiting per column styling. #27

Farro178 opened this issue Sep 25, 2023 · 0 comments

Comments

@Farro178
Copy link

Farro178 commented Sep 25, 2023

Hey!

I just wanna start off by saying you've got a really nice simple library here, i'm using a slightly adapted version for my own needs with more of a focus on explicitly defining the amount of columns.

bind:clientWidth={masonryWidth}
bind:clientHeight={masonryHeight}

One thing I noticed was the bind is creating an Iframe in the DOM (maybe this is an expected behaviour in Svelte, i'm still pretty new to it). As i'm not using it I could just remove it but perhaps it's something that could be improved down the line. As this currently stops you from applying classes to specific columns for example in my use-case i'm adding a margin-top to every 2nd child.

Screenshot 2023-09-25 at 22 53 14
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