From 9ccf0367bfa1590882ffaccec55497b68dcb175a Mon Sep 17 00:00:00 2001 From: tellthemachines Date: Tue, 7 May 2024 13:00:41 +1000 Subject: [PATCH] Resize to correct columns --- .../src/components/grid-visualizer/grid-item-resizer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/grid-visualizer/grid-item-resizer.js b/packages/block-editor/src/components/grid-visualizer/grid-item-resizer.js index 7df0c9ef0710a..c18cd590d3fac 100644 --- a/packages/block-editor/src/components/grid-visualizer/grid-item-resizer.js +++ b/packages/block-editor/src/components/grid-visualizer/grid-item-resizer.js @@ -165,7 +165,8 @@ export function GridItemResizer( { clientId, onChange } ) { ); const columnEnd = getClosestLine( gridColumnLines, - blockElement.offsetLeft + boxElement.offsetWidth + blockElement.offsetLeft + + ( boxElement.offsetWidth + boxElement.offsetLeft ) ); const rowEnd = getClosestLine( gridRowLines,