Fix wrong pagination when used with padding
Merge pull request #359 from vladimir-vg/padding-pages-count-fix

Fix wrong pagination when used with padding