vaheqelyan / svelte-grid

A responsive, draggable and resizable grid layout, for Svelte.
https://svelte-grid.now.sh/
MIT License
948 stars 57 forks source link

Exception on other.js > getColumn #77

Open frantic0 opened 3 years ago

frantic0 commented 3 years ago

Hi @vaheqelyan

I found a run time exception that impedes loading the items on the svelte-grid.

Screen Shot 2021-03-01 at 14 48 45 (2)

This happens with svelte-grid version 3.6.5 and 4.0.0 (just upgraded and tested) when I resize the window with a svelte-grid component loaded on the UI.

(https://github.com/frantic0/sema-next/blob/editors/src/pages/playground/index.svelte)[https://github.com/frantic0/sema-next/blob/editors/src/pages/playground/index.svelte]

vaheqelyan commented 3 years ago

I am on mobile, can't access the file

frantic0 commented 3 years ago

are you referring to the image that I posted?

vaheqelyan commented 3 years ago

nope, I mean the link (https://github.com/frantic0/sema-next/blob/editors/src/pages/playground/index.svelte) [https://github.com/frantic0/sema-next/blob /editors/src/pages/playground/index.svelte] which you included in the description

vaheqelyan commented 3 years ago

I mean, if a value cannot be iterated, then it must be undefined. what the columns are equal to, in the debug session ?

frantic0 commented 3 years ago

you're right, it is undefined. I think this is related to https://github.com/vaheqelyan/svelte-grid/issues/78, where if we don't express a cols config ([resolution, columns])) and resize a window to exceed that resolution that exception pops-up