Fix the nav-pills scroll position to incorporate margin adjustment.