From 986141b8b1c249aa65d06475ee4ba5e51e582773 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 21 Oct 2022 17:51:35 +0100 Subject: [PATCH] Fix flashing settings bar in stale position --- packages/client/src/components/preview/SettingsBar.svelte | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/client/src/components/preview/SettingsBar.svelte b/packages/client/src/components/preview/SettingsBar.svelte index 757d8b88db..332409986a 100644 --- a/packages/client/src/components/preview/SettingsBar.svelte +++ b/packages/client/src/components/preview/SettingsBar.svelte @@ -17,6 +17,11 @@ $: definition = $componentStore.selectedComponentDefinition $: showBar = definition?.showSettingsBar && !$dndIsDragging + $: { + if (!showBar) { + measured = false + } + } $: settings = getBarSettings(definition) const getBarSettings = definition => {