fixed vertical padding calculation