Get correct doc height.