From 5d242a3a69a023b3c830c7719170bf9f75562ca7 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Sun, 6 Oct 2019 14:11:49 +0200 Subject: [PATCH] Start updating RTE toolbar position --- src/rich_text_editor/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rich_text_editor/index.js b/src/rich_text_editor/index.js index 68a44d833..19280ce16 100644 --- a/src/rich_text_editor/index.js +++ b/src/rich_text_editor/index.js @@ -239,7 +239,7 @@ export default () => { }); if (pos) { - if (config.adjustToolbar) { + if (config.adjustToolbar && 0) { const frameOffset = canvas.getCanvasView().getFrameOffset(); // Move the toolbar down when the top canvas edge is reached if ( @@ -251,8 +251,8 @@ export default () => { } const toolbarStyle = toolbar.style; - toolbarStyle.top = pos.top + un; - toolbarStyle.left = pos.left + un; + toolbarStyle.top = -toolbar.offsetHeight + un; + toolbarStyle.left = 0 + un; } },