fix(pagination): take maxSize defaults into account

Fixes #1728
Closes #1738