Fix display issues with small pager template on Windows and when page numbers are large.