Fix #661, where category axes break if there is too little height to ren...

...der text.

Add unit test.