-
Notifications
You must be signed in to change notification settings - Fork 63
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
Uncaught RangeError: Invalid array length #47
Comments
thats just one quick-n-dirty workaround i ended up writing my own component at https://github.com/milahu/svelte-layout-resizable the model solution was goldenlayout.js, but i could not get it working with svelte (requires jquery) |
This is normal behavior,
Sorry @evdama. Currently, this package doesn't support such a thing, and probably won't ever do it, this is a grid. Similar to this #21 You can cause your content to overflow, or truncate string, but auto height is not possible, sorry. You probably need a different type of layout. I've never tried this before, but you can assign a really low number for |
Yeah, I figured, I got confused... so what I'll do is I'll make a small |
I'm getting this error from the code below
If I also apply a
rowHeight={70}
property, the error goes away i.e.<Grid bind:items={items} let:item={item} let:index gap={10} cols={10} rowHeight={70}>
works. However, I don't want the row height to be static but rather adjust based on grid items height and its contents 😊The same can be seen with this REPL... remove the
rowHeight
and it stops working https://svelte.dev/repl/35a506b9456d463ab441841859e1bb9f?version=3.29.4The text was updated successfully, but these errors were encountered: