set pagination height to min-height

fix for issue #5153