cuire / svelte-grid-extended

A draggable and resizable grid layout, for Svelte
https://svelte-grid-extended.vercel.app
MIT License
74 stars 8 forks source link

GridItem width and height not calculated correctly #61

Closed cuire closed 8 months ago

cuire commented 8 months ago

Discussed in https://github.com/cuire/svelte-grid-extended/discussions/60

Originally posted by **fishefam** November 22, 2023 It does not seem that the values I set to these properties are in px. The size of items are not what I expect when they render on screen.

These lines cause that bug: https://github.com/cuire/svelte-grid-extended/blob/6a245403995a36f84b8e85013e1b3be772cfaddd/src/lib/utils/item.ts#L8C9-L8C55

TBH, I dont remember why this it so, but right now its seams like a bug