Adjust navigation bar's layout.