Added code to test center vertically with parent view.