Add necessary padding for height calculation