fix: fix the image Bubble Menus position not correct.

This commit is contained in:
Michael Yang 2024-09-15 13:00:20 +08:00
parent efc369cd32
commit 6407bce0c8
1 changed files with 1 additions and 1 deletions

View File

@ -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) {