fix(svelte) resizing updates width & height in the store correctly

This commit is contained in:
Peter
2023-10-25 09:31:04 +02:00
parent 49bf4c2f90
commit d1662f1703
@@ -106,6 +106,12 @@
};
});
// Update width & height on resize
$: {
store.width.set(clientWidth);
store.height.set(clientHeight);
}
// this updates the store for simple changes
// where the prop names equals the store name
$: {