Account for header/footer padding when calculating height of header/foot...

...er
@bbernberg - review