Skip to content

Commit

Permalink
After CR
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasOsti committed Nov 3, 2023
1 parent 5b89c97 commit 98c0a77
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/bundle/Resources/public/js/CKEditor/core/base-ckeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,8 @@ const VIEWPORT_TOP_OFFSET_FOCUS_MODE = 0;
};
const setDataSourceHeight = (toolbarNode, fieldEditNode) => {
const dataSourceNode = fieldEditNode.querySelector('.ibexa-data-source');
const toolbarNodeRect = toolbarNode.getBoundingClientRect();
const dataSourceNodeRect = dataSourceNode.getBoundingClientRect();
const { height: toolbarHeight } = toolbarNodeRect;
const { top: dataSourceTop } = dataSourceNodeRect;
const { height: toolbarHeight } = toolbarNode.getBoundingClientRect();
const { top: dataSourceTop } = dataSourceNode.getBoundingClientRect();

if (toolbarHeight > dataSourceTop) {
const positionDiff = toolbarHeight - dataSourceTop;
Expand Down

0 comments on commit 98c0a77

Please sign in to comment.