implement auto-scroll to a row in a table as a directive