A local-first personal finance app
Fix: column titles incorrect when selecting transactions and resizing window (#2867)
lelemm7f658691bb06
diff --git a/packages/desktop-client/src/components/table.tsx b/packages/desktop-client/src/components/table.tsxindex d321e6052d..42560177b3 100644--- a/packages/desktop-client/src/components/table.tsx+++ b/packages/desktop-client/src/components/table.tsx@@ -1004,15 +1004,19 @@ export const Table = forwardRef(}if (scrollContainer.current && saveScrollWidth) {- saveScrollWidth(- scrollContainer.current.offsetParent- ? scrollContainer.current.offsetParent.clientWidth- : 0,- scrollContainer.current ? scrollContainer.current.clientWidth : 0,- );+ setTimeout(saveScrollDelayed, 200);}});+ function saveScrollDelayed() {+ saveScrollWidth(+ scrollContainer.current?.offsetParent+ ? scrollContainer.current?.offsetParent.clientWidth+ : 0,+ scrollContainer.current ? scrollContainer.current.clientWidth : 0,+ );+ }+function renderRow({ index, style, key }) {const item = items[index];const editing = editingId === item.id;diff --git a/upcoming-release-notes/2867.md b/upcoming-release-notes/2867.mdnew file mode 100644index 0000000000..41d9996d38--- /dev/null+++ b/upcoming-release-notes/2867.md@@ -0,0 +1,6 @@+---+category: Bugfix+authors: [lelemm]+---++Fix: column titles incorrect when resizing window