expand/collapse properly scrolls to
if the new selected element is outside the view, scroll to it