I am trying to autoscroll the middle row in the order book.
I have an orderBook div that hosts a table with orderBook. And one of the rows in this table has id middleRow. What I'm trying to do is scroll and place this line in the middle of the order.
The expected result is shown in the picture:

I tried the jQuery scrollTo function, but it puts the middle row on top of the screen, as shown below:
$ ('# order book'). Find ('tableBody'). ScrollTo ('# orderBookMiddleRow')

source share