take top margin into account when checking if cross-references fit