Shared: TableHeader: fixed the calculation of the old width for the dynamic column index

This commit is contained in:
Dmitry Sychugov 2024-06-24 14:14:13 +05:00
parent 1788aacf93
commit efbeb95641

View File

@ -404,7 +404,8 @@ class TableHeader extends React.Component<
.map((column) => getSubstring(column))
.reduce((x, y) => x + y);
const oldWidth = defaultWidth - defaultSize - settingsSize;
const oldWidth =
defaultWidth - defaultSize - settingsSize - indexColumnDifference;
if (Math.round(defaultWidth) !== Math.round(containerWidth) && !isResized) {
if (infoPanelVisible) localStorage.removeItem(columnInfoPanelStorageName);