Skip to content

Commit 4b20c30

Browse files
committed
Merge branch 'bdbch/6410-table-cell-bubblemenu-adjustment' of github.com:ueberdosis/tiptap into bdbch/6410-table-cell-bubblemenu-adjustment
2 parents d88a21f + deb0951 commit 4b20c30

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

packages/extension-bubble-menu/src/bubble-menu-plugin.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,7 @@ function combineDOMRects(rect1: DOMRect, rect2: DOMRect): DOMRect {
2626
const height = bottom - top
2727
const x = left
2828
const y = top
29-
const data = {
30-
top,
31-
bottom,
32-
left,
33-
right,
34-
width,
35-
height,
36-
x,
37-
y,
38-
}
39-
return {
40-
...data,
41-
toJSON: () => data,
42-
}
29+
return new DOMRect(x, y, width, height)
4330
}
4431

4532
export interface BubbleMenuPluginProps {

0 commit comments

Comments
 (0)