From 2ceb2ed098b1483955942275209e5da1f4b02a3f Mon Sep 17 00:00:00 2001 From: konradoboza Date: Tue, 13 Jul 2021 13:42:58 +0200 Subject: [PATCH] IBX-759: Fixed wrong class taken to calculate toolbar's width --- .../Resources/public/js/OnlineEditor/toolbars/config/base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundle/Resources/public/js/OnlineEditor/toolbars/config/base.js b/src/bundle/Resources/public/js/OnlineEditor/toolbars/config/base.js index d2966684..86220bbd 100644 --- a/src/bundle/Resources/public/js/OnlineEditor/toolbars/config/base.js +++ b/src/bundle/Resources/public/js/OnlineEditor/toolbars/config/base.js @@ -42,7 +42,7 @@ export default class EzConfigBase extends EzConfigButtonsBase { const scrollLeft = parseInt(block.$.scrollLeft, 10); const blockLeftMargin = block.$.offsetLeft; const blockWidth = block.$.offsetWidth; - const toolbarWidth = document.querySelector('.ae-toolbar-floating').offsetWidth; + const toolbarWidth = document.querySelector('.ae-toolbar-styles').offsetWidth; const maxLeft = blockWidth - toolbarWidth; range.selectNodeContents(positionReference.$);