Improve handling of top level roots which fit on the page