diff --git a/elementor/templates/elementor_builder.html b/elementor/templates/elementor_builder.html index c279304..0827681 100644 --- a/elementor/templates/elementor_builder.html +++ b/elementor/templates/elementor_builder.html @@ -1760,7 +1760,10 @@ const state = { let maxBottom = 700; inner.querySelectorAll(".block").forEach((node)=>{ const n = node; - maxBottom = Math.max(maxBottom, n.offsetTop + n.offsetHeight + 120); + const blockId = n.dataset.blockId; + const source = state.blocks.find((b)=>b && b.id === blockId); + const y = Number(source?.pos?.y || 0); + maxBottom = Math.max(maxBottom, y + n.offsetHeight + 140); }); freeDragBottom = maxBottom; canvas.style.minHeight = maxBottom + "px";