Fix rounding error

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.