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:
@@ -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
|
// this updates the store for simple changes
|
||||||
// where the prop names equals the store name
|
// where the prop names equals the store name
|
||||||
$: {
|
$: {
|
||||||
|
|||||||
Reference in New Issue
Block a user