Fix autoscrolling in tabs

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>