To test if the automatic height really works choose the number of paragraphs: 1, 2, 5, 10, 25 or just fill in any number you like.
This is an example class (1/1).
Full post on my blog or download the source code.