Skip to content

Commit 76860d3

Browse files
committed
MC-5383: Option Menus, Heading Inline Editor & tinyMCE Inline Editor Are Cut Off on Full Screen View
Factor in current stage padding top in calculations for new padding to apply
1 parent 5558a77 commit 76860d3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/js/wysiwyg/tinymce4.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/wysiwyg/tinymce4.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,8 @@ export default class Wysiwyg implements WysiwygInterface {
219219
return;
220220
}
221221

222-
const paddingTopToApplyToStage = Math.abs(inlineToolbarClientRectTop);
222+
const currentStagePaddingTop = parseInt($stage.css("paddingTop") || "0", 10);
223+
const paddingTopToApplyToStage = Math.abs(inlineToolbarClientRectTop) + currentStagePaddingTop;
223224

224225
// increase padding top and adjust scrollTop accordingly to make it seamless
225226
$stage.css("paddingTop", paddingTopToApplyToStage);

0 commit comments

Comments
 (0)