I found same issue with #359 in our project so I add some failing tests for merging it.
Take a look please :)
Add failing tests with padding
Fix wrong pagination when used with padding
Merge pull request #376 from negipo/add_failing_test_for_padding
Add failing tests for wrong pagination with padding
@negipo Awesome! Thanks! 💞