More helper methods for centering views.