From 51c0cedaf5a7f5c13b32b8865730569d9fa1b13c Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Fri, 17 Sep 2021 21:23:04 +0200 Subject: [PATCH] Make HandleSelection perfectly size when first activating --- ts/editable/Mathjax.svelte | 5 ++-- ts/editor/MathjaxHandle.svelte | 44 ++++++++++++++++++---------------- 2 files changed, 26 insertions(+), 23 deletions(-) diff --git a/ts/editable/Mathjax.svelte b/ts/editable/Mathjax.svelte index ccf442f12..0f3a3385f 100644 --- a/ts/editable/Mathjax.svelte +++ b/ts/editable/Mathjax.svelte @@ -3,7 +3,7 @@ Copyright: Ankitects Pty Ltd and contributors License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html --> @@ -63,7 +69,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html autoClose={false} distance={4} let:createDropdown - let:dropdownObject > {#if activeImage} { - await onEditorUpdate(event); - dropdownObject.update(); - }} + on:update={onEditorUpdate} />