take page footer into account

Authored by mart on Aug 23 2017, 5:33 PM.