Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfeng33 committed Oct 25, 2024
1 parent f226d85 commit 43c556c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/khaki-peaches-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@udecode/plate-cursor': patch
---

Fix overlay position when there a fixed height of editor.
1 change: 1 addition & 0 deletions packages/cursor/src/hooks/useCursorOverlayPositions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export const useCursorOverlayPositions = <TCursorData extends UnknownObject>({
const contentRect = containerRef.current!.getBoundingClientRect();
xOffset = contentRect.x;
yOffset = contentRect.y;
yOffset -= containerRef.current.scrollTop;
}

let selectionRectsChanged =
Expand Down

0 comments on commit 43c556c

Please sign in to comment.