diff --git a/packages/desktop-client/src/components/table.tsx b/packages/desktop-client/src/components/table.tsx index 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.md new file mode 100644 index 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