From 1890dfed2950ce09e8f2f669950736853fdb4b65 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 17 Jun 2021 16:23:17 +0100 Subject: [PATCH] Adjuts top position of settings bar when no room --- packages/client/src/components/preview/SettingsBar.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/preview/SettingsBar.svelte b/packages/client/src/components/preview/SettingsBar.svelte index 76cdd8fe8b..8d2b862422 100644 --- a/packages/client/src/components/preview/SettingsBar.svelte +++ b/packages/client/src/components/preview/SettingsBar.svelte @@ -34,7 +34,7 @@ // Vertically, always render above unless no room, then render inside let newTop = elBounds.top + scrollY - verticalOffset - height if (newTop < 0) { - newTop = elBounds.top + scrollY + verticalOffset + newTop = 0 } // Horizontally, try to center first.