A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
editor: fix column toolbar position when table is scrolled horizontally (#4366)
Muhammad Ali0ed605a5b9a4
diff --git a/packages/editor/src/extensions/table/component.tsx b/packages/editor/src/extensions/table/component.tsxindex 8ca60a6f3..15111b645 100644--- a/packages/editor/src/extensions/table/component.tsx+++ b/packages/editor/src/extensions/table/component.tsx@@ -230,7 +230,9 @@ function TableColumnToolbar(props: TableToolbarProps) {yOffset: 2});- columnToolsRef.current.style.left = `${pos.left}px`;+ columnToolsRef.current.style.left = `${+ pos.left - (table.current.parentElement?.scrollLeft || 0)+ }px`;columnToolsRef.current.style.top = `${pos.top}px`;}