diff --git a/packages/block-editor/src/components/block-preview/auto.js b/packages/block-editor/src/components/block-preview/auto.js index 5a78e7abeb3b4c..53ba2bed512547 100644 --- a/packages/block-editor/src/components/block-preview/auto.js +++ b/packages/block-editor/src/components/block-preview/auto.js @@ -91,8 +91,10 @@ function AutoBlockPreview( { bodyElement.style.padding = __experimentalPadding + 'px'; - // necessary for contentResizeListener to work. - bodyElement.style.position = 'relative'; + // Necessary for contentResizeListener to work. + bodyElement.style.boxSizing = 'border-box'; + bodyElement.style.position = 'absolute'; + bodyElement.style.width = '100%'; }, [] ) } aria-hidden tabIndex={ -1 }