Fix error with pagination

If this isn't rounded and the element height doesn't divide exactly into the container height, the element pagination doesn't work later on.