From ceef8f7274728dbc3cb1149fe858db7219065789 Mon Sep 17 00:00:00 2001 From: Tadeu Tupinamba Date: Wed, 4 Mar 2026 19:31:16 -0300 Subject: [PATCH] fix(super-editor): align image resize handles with actual image position The ImageResizeOverlay calculates coordinates relative to .super-editor (via closest('.super-editor')), but .super-editor had no position set. The overlay's position:absolute resolved to .super-editor-container instead, causing a coordinate mismatch whenever there was any offset between the two (e.g., a ruler above the editor). Add position:relative to .super-editor so it becomes the positioned ancestor that matches the overlay's coordinate math. --- packages/super-editor/src/components/SuperEditor.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/super-editor/src/components/SuperEditor.vue b/packages/super-editor/src/components/SuperEditor.vue index 61a9863cef..dfbc27638c 100644 --- a/packages/super-editor/src/components/SuperEditor.vue +++ b/packages/super-editor/src/components/SuperEditor.vue @@ -1262,6 +1262,7 @@ onBeforeUnmount(() => { .super-editor { color: initial; overflow: hidden; + position: relative; } .placeholder-editor {