[CDF-379] - A very small axisSize sometimes leads to an infinite loop.

@pamval please review.