fix: fix the image Bubble Menus position not correct.
This commit is contained in:
parent
efc369cd32
commit
6407bce0c8
|
@ -142,7 +142,7 @@ const createImageBubbleMenu = (aiEditor: AiEditor) => {
|
|||
const imgRect = imageEl.getBoundingClientRect();
|
||||
return {
|
||||
...domRect,
|
||||
left: imgRect.left + imgRect.width * 0.25
|
||||
left: imgRect.left + imgRect.width * 0.5 - 100
|
||||
}
|
||||
}),
|
||||
onCreate(instance: Instance) {
|
||||
|
|
Loading…
Reference in New Issue