Commit 217bdce
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1262 | 1262 | | |
1263 | 1263 | | |
1264 | 1264 | | |
| 1265 | + | |
1265 | 1266 | | |
1266 | 1267 | | |
1267 | 1268 | | |
| |||
0 commit comments