Modifying the layout method so that the segments center nicely if there is no scrolling