Skip to content

Commit 217bdce

Browse files
authored
fix(super-editor): align image resize handles with actual image position (#2293)
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.
1 parent fb3d25e commit 217bdce

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/super-editor/src/components/SuperEditor.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,6 +1262,7 @@ onBeforeUnmount(() => {
12621262
.super-editor {
12631263
color: initial;
12641264
overflow: hidden;
1265+
position: relative;
12651266
}
12661267
12671268
.placeholder-editor {

0 commit comments

Comments
 (0)