Merge pull request #3536 from wbkd/svelte-update-minimap-on-resize

fix(svelte) resizing updates width & height in the store correctly
This commit is contained in:
Moritz Klack
2023-10-30 11:14:34 +01:00
committed by GitHub

View File

@@ -106,6 +106,14 @@
};
});
// Update width & height on resize
$: {
if (clientWidth !== undefined && clientHeight !== undefined) {
store.width.set(clientWidth);
store.height.set(clientHeight);
}
}
// this updates the store for simple changes
// where the prop names equals the store name
$: {