Having trouble with a scrolling table issue. https://i.sstatic.net/PFyN3.png
Upon page load, the first row (ROW 1) is automatically selected and highlighted. Clicking the next button selects and highlights the subsequent rows. However, once ROW >= 8 (e.g. ROW 9, 10...etc.) are selected, the table fails to scroll automatically, causing the currently selected row to be out of view even though it's highlighted. Expected behavior can be seen in this image: https://i.sstatic.net/xtTyL.png
When ROW 8 is selected, automatic scrolling should kick in. This ensures that the next row (ROW 9) stays visible while the previous rows remain hidden.
The goal is to always have the currently selected row and the next row visible at the same time when navigating using the next/previous buttons. The table should continue to scroll until reaching the last visible row and then shift to show the row before it.
I'm stuck on how to fix this issue. Any assistance would be greatly appreciated.
Best Regards, Ken.