The issue occurs , when "Index" column is hidden. In such a case the row is selected in the main table, but the table itself does not "scroll to" the selected message, as requested "scroll to" column is hidden.
Logic should be changed! We should find the first visible column in the main table, and if there is any visible column - jump to its index. In this case, scrolling to the selected row will always work.
The issue occurs , when "Index" column is hidden. In such a case the row is selected in the main table, but the table itself does not "scroll to" the selected message, as requested "scroll to" column is hidden.
Logic should be changed! We should find the first visible column in the main table, and if there is any visible column - jump to its index. In this case, scrolling to the selected row will always work.