fix crossref height calculation when page contains multiple
paragraphs