mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 12:43:09 -05:00
Fix: column titles incorrect when selecting transactions and resizing window (#2867)
This commit is contained in:
@@ -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;
|
||||
|
||||
6
upcoming-release-notes/2867.md
Normal file
6
upcoming-release-notes/2867.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [lelemm]
|
||||
---
|
||||
|
||||
Fix: column titles incorrect when resizing window
|
||||
Reference in New Issue
Block a user