I\'m dynamically adding rows to a table using jQuery.
The table is inside a div which has overflow:auto thus causing a vertical scroll
I found a case (overflow div > table > tr > td) in which scrolling to the relative position of the tr does not work. Instead, I had to scroll the overflow container (div) using scrollTop to .offset().top - .offset().top. Eg:
$('#container').scrollTop( $('#tr').offset().top - $('#td').offset().top )