Added padding to enable positioning the center of the view on the edge.