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

After 1.1.2 style is broken #55

Closed fabiot21 closed 9 months ago

fabiot21 commented 9 months ago

52 broke the style of an internal app. the grid no longer consider the total height and width of all items as a container 🥹 @cuire Is it possible to rollback? or any other way to add those styles on client side?

I think the deletion of this is what causes the style bug now.

$: if ($gridSettings.itemSize) containerWidth = _cols * ($gridSettings.itemSize.width + gap + 1);
$: if ($gridSettings.itemSize) containerHeight = _rows * ($gridSettings.itemSize.height + gap + 1);

REPL working on 1.1.1 https://svelte.dev/repl/09ea1a4b3f964f209d22c9ebe6d3b82c?version=4.2.1 (not working correctly with 1.1.2 / 1.1.3)

cuire commented 9 months ago

I know how to fix that, wait for PR

cuire commented 9 months ago

Fixed in 1.1.4. Thanks for reporting the issue 💖